COIN-OR::LEMON - Graph Library

source: lemon-main/cmake/FindSOPLEX.cmake @ 1208:c6aa2cc1af04

Last change on this file since 1208:c6aa2cc1af04 was 1088:4000b7ef4e01, checked in by Alpar Juttner <alpar@…>, 12 years ago

Add cmake config to find SoPlex? (#460)

Based on the patch sent by ax487

File size: 648 bytes
RevLine 
[1088]1SET(SOPLEX_ROOT_DIR "" CACHE PATH "SoPlex root directory")
2
3FIND_PATH(SOPLEX_INCLUDE_DIR
4  soplex.h
5  HINTS ${SOPLEX_ROOT_DIR}/src
6)
7FIND_LIBRARY(SOPLEX_LIBRARY
8  soplex
9  HINTS ${SOPLEX_ROOT_DIR}/lib
10)
11
12INCLUDE(FindPackageHandleStandardArgs)
13FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOPLEX DEFAULT_MSG SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
14
15IF(SOPLEX_FOUND)
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")
21ENDIF(SOPLEX_FOUND)
22
23MARK_AS_ADVANCED(SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
Note: See TracBrowser for help on using the repository browser.