cmake/FindSOPLEX.cmake
author Gabor Gevay <ggab90@gmail.com>
Sun, 05 Jan 2014 22:24:56 +0100
changeset 1336 0759d974de81
permissions -rw-r--r--
STL style iterators (#325)

For
* graph types,
* graph adaptors,
* paths,
* iterable maps,
* LP rows/cols and
* active nodes is BellmanFord
alpar@1264
     1
SET(SOPLEX_ROOT_DIR "" CACHE PATH "SoPlex root directory")
alpar@1264
     2
alpar@1264
     3
FIND_PATH(SOPLEX_INCLUDE_DIR
alpar@1264
     4
  soplex.h
alpar@1264
     5
  HINTS ${SOPLEX_ROOT_DIR}/src
alpar@1264
     6
)
alpar@1264
     7
FIND_LIBRARY(SOPLEX_LIBRARY
alpar@1264
     8
  soplex
alpar@1264
     9
  HINTS ${SOPLEX_ROOT_DIR}/lib
alpar@1264
    10
)
alpar@1264
    11
alpar@1264
    12
INCLUDE(FindPackageHandleStandardArgs)
alpar@1264
    13
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOPLEX DEFAULT_MSG SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
alpar@1264
    14
alpar@1264
    15
IF(SOPLEX_FOUND)
alpar@1264
    16
  SET(SOPLEX_INCLUDE_DIRS ${SOPLEX_INCLUDE_DIR})
alpar@1264
    17
  SET(SOPLEX_LIBRARIES ${SOPLEX_LIBRARY})
alpar@1264
    18
  IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
alpar@1264
    19
    SET(SOPLEX_LIBRARIES "${SOPLEX_LIBRARIES};z")
alpar@1264
    20
  ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
alpar@1264
    21
ENDIF(SOPLEX_FOUND)
alpar@1264
    22
alpar@1264
    23
MARK_AS_ADVANCED(SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)