1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cmake/FindSOPLEX.cmake Wed Oct 17 19:14:07 2018 +0200
1.3 @@ -0,0 +1,23 @@
1.4 +SET(SOPLEX_ROOT_DIR "" CACHE PATH "SoPlex root directory")
1.5 +
1.6 +FIND_PATH(SOPLEX_INCLUDE_DIR
1.7 + soplex.h
1.8 + HINTS ${SOPLEX_ROOT_DIR}/src
1.9 +)
1.10 +FIND_LIBRARY(SOPLEX_LIBRARY
1.11 + soplex
1.12 + HINTS ${SOPLEX_ROOT_DIR}/lib
1.13 +)
1.14 +
1.15 +INCLUDE(FindPackageHandleStandardArgs)
1.16 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOPLEX DEFAULT_MSG SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
1.17 +
1.18 +IF(SOPLEX_FOUND)
1.19 + SET(SOPLEX_INCLUDE_DIRS ${SOPLEX_INCLUDE_DIR})
1.20 + SET(SOPLEX_LIBRARIES ${SOPLEX_LIBRARY})
1.21 + IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
1.22 + SET(SOPLEX_LIBRARIES "${SOPLEX_LIBRARIES};z")
1.23 + ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
1.24 +ENDIF(SOPLEX_FOUND)
1.25 +
1.26 +MARK_AS_ADVANCED(SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)