Location: LEMON/LEMON-official/cmake/FindCPLEX.cmake - annotation
Load file history
Update CPLEX lookup
- References to explicit CPLEX version 9.1 have been removed
- Library file name must either be 'cplex.a' or 'cplex.dll'
r682:89705c452130 r682:89705c452130 r667:c3ce597c11ae r667:c3ce597c11ae r1119:1818cc848005 r1119:1818cc848005 r682:89705c452130 r682:89705c452130 r667:c3ce597c11ae r1119:1818cc848005 r1119:1818cc848005 r1119:1818cc848005 r682:89705c452130 r1119:1818cc848005 r682:89705c452130 r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r1119:1818cc848005 r1119:1818cc848005 r1119:1818cc848005 r682:89705c452130 r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r683:6dc44006c1a8 r683:6dc44006c1a8 r683:6dc44006c1a8 r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r667:c3ce597c11ae r674:20dac2104519 r674:20dac2104519 r674:20dac2104519 r667:c3ce597c11ae | SET(CPLEX_ROOT_DIR "" CACHE PATH "CPLEX root directory")
FIND_PATH(CPLEX_INCLUDE_DIR
ilcplex/cplex.h
PATHS "C:/ILOG/CPLEX/include"
PATHS "/opt/ilog/cplex/include"
HINTS ${CPLEX_ROOT_DIR}/include
)
FIND_LIBRARY(CPLEX_LIBRARY
cplex
PATHS "C:/ILOG/CPLEX/lib/msvc7/stat_mda"
PATHS "/opt/ilog/cplex/bin"
HINTS ${CPLEX_ROOT_DIR}/bin
HINTS ${CPLEX_ROOT_DIR}/lib
)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
FIND_PATH(CPLEX_BIN_DIR
cplex.dll
PATHS "C:/ILOG/CPLEX/bin/x86_win32"
HINTS ${CPLEX_ROOT_DIR}/bin
)
IF(CPLEX_FOUND)
SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
SET(CPLEX_LIBRARIES "${CPLEX_LIBRARIES};m;pthread")
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
ENDIF(CPLEX_FOUND)
MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
IF(CPLEX_FOUND)
SET(LEMON_HAVE_LP TRUE)
SET(LEMON_HAVE_MIP TRUE)
SET(LEMON_HAVE_CPLEX TRUE)
ENDIF(CPLEX_FOUND)
|