author | Alpar Juttner <alpar@cs.elte.hu> |
Wed, 07 Oct 2015 18:49:46 +0200 | |
changeset 1154 | 9b4503108cc0 |
permissions | -rw-r--r-- |
alpar@1088 | 1 |
SET(SOPLEX_ROOT_DIR "" CACHE PATH "SoPlex root directory") |
alpar@1088 | 2 |
|
alpar@1088 | 3 |
FIND_PATH(SOPLEX_INCLUDE_DIR |
alpar@1088 | 4 |
soplex.h |
alpar@1088 | 5 |
HINTS ${SOPLEX_ROOT_DIR}/src |
alpar@1088 | 6 |
) |
alpar@1088 | 7 |
FIND_LIBRARY(SOPLEX_LIBRARY |
alpar@1088 | 8 |
soplex |
alpar@1088 | 9 |
HINTS ${SOPLEX_ROOT_DIR}/lib |
alpar@1088 | 10 |
) |
alpar@1088 | 11 |
|
alpar@1088 | 12 |
INCLUDE(FindPackageHandleStandardArgs) |
alpar@1088 | 13 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOPLEX DEFAULT_MSG SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR) |
alpar@1088 | 14 |
|
alpar@1088 | 15 |
IF(SOPLEX_FOUND) |
alpar@1088 | 16 |
SET(SOPLEX_INCLUDE_DIRS ${SOPLEX_INCLUDE_DIR}) |
alpar@1088 | 17 |
SET(SOPLEX_LIBRARIES ${SOPLEX_LIBRARY}) |
alpar@1088 | 18 |
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") |
alpar@1088 | 19 |
SET(SOPLEX_LIBRARIES "${SOPLEX_LIBRARIES};z") |
alpar@1088 | 20 |
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") |
alpar@1088 | 21 |
ENDIF(SOPLEX_FOUND) |
alpar@1088 | 22 |
|
alpar@1088 | 23 |
MARK_AS_ADVANCED(SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR) |