1 SET(CPLEX_ROOT_DIR "" CACHE PATH "CPLEX root directory")
3 FIND_PATH(CPLEX_INCLUDE_DIR
5 PATHS "C:/ILOG/CPLEX91/include"
6 PATHS "/opt/ilog/cplex91/include"
7 HINTS ${CPLEX_ROOT_DIR}/include
9 FIND_LIBRARY(CPLEX_LIBRARY
11 PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda"
12 PATHS "/opt/ilog/cplex91/bin"
13 HINTS ${CPLEX_ROOT_DIR}/bin
16 INCLUDE(FindPackageHandleStandardArgs)
17 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
19 FIND_PATH(CPLEX_BIN_DIR
21 PATHS "C:/ILOG/CPLEX91/bin/x86_win32"
25 SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
26 SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
27 IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
28 SET(CPLEX_LIBRARIES "${CPLEX_LIBRARIES};m;pthread")
29 ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
32 MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
35 SET(LEMON_HAVE_LP TRUE)
36 SET(LEMON_HAVE_MIP TRUE)
37 SET(LEMON_HAVE_CPLEX TRUE)