1 SET(SOPLEX_ROOT_DIR "" CACHE PATH "SoPlex root directory")
3 FIND_PATH(SOPLEX_INCLUDE_DIR
5 HINTS ${SOPLEX_ROOT_DIR}/src
7 FIND_LIBRARY(SOPLEX_LIBRARY
9 HINTS ${SOPLEX_ROOT_DIR}/lib
12 INCLUDE(FindPackageHandleStandardArgs)
13 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOPLEX DEFAULT_MSG SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
16 SET(SOPLEX_INCLUDE_DIRS ${SOPLEX_INCLUDE_DIR})
17 SET(SOPLEX_LIBRARIES ${SOPLEX_LIBRARY})
18 IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
19 SET(SOPLEX_LIBRARIES "${SOPLEX_LIBRARIES};z")
20 ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
23 MARK_AS_ADVANCED(SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)