author | Akos Ladanyi <ladanyi@tmit.bme.hu> |
Thu, 23 Apr 2009 07:29:50 +0100 | |
changeset 612 | c3ce597c11ae |
child 622 | 20dac2104519 |
permissions | -rw-r--r-- |
ladanyi@612 | 1 |
FIND_PATH(CPLEX_INCLUDE_DIR |
ladanyi@612 | 2 |
ilcplex/cplex.h |
ladanyi@612 | 3 |
PATHS "C:/ILOG/CPLEX91/include") |
ladanyi@612 | 4 |
|
ladanyi@612 | 5 |
FIND_LIBRARY(CPLEX_LIBRARY |
ladanyi@612 | 6 |
NAMES cplex91 |
ladanyi@612 | 7 |
PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda") |
ladanyi@612 | 8 |
|
ladanyi@612 | 9 |
INCLUDE(FindPackageHandleStandardArgs) |
ladanyi@612 | 10 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR) |
ladanyi@612 | 11 |
|
ladanyi@612 | 12 |
FIND_PATH(CPLEX_BIN_DIR |
ladanyi@612 | 13 |
cplex91.dll |
ladanyi@612 | 14 |
PATHS "C:/ILOG/CPLEX91/bin/x86_win32") |
ladanyi@612 | 15 |
|
ladanyi@612 | 16 |
IF(CPLEX_FOUND) |
ladanyi@612 | 17 |
SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR}) |
ladanyi@612 | 18 |
SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY}) |
ladanyi@612 | 19 |
ENDIF(CPLEX_FOUND) |
ladanyi@612 | 20 |
|
ladanyi@612 | 21 |
MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR) |
ladanyi@612 | 22 |
|
ladanyi@612 | 23 |
IF(CPLEX_FOUND) |
ladanyi@612 | 24 |
SET(HAVE_LP TRUE) |
ladanyi@612 | 25 |
SET(HAVE_MIP TRUE) |
ladanyi@612 | 26 |
SET(HAVE_CPLEX TRUE) |
ladanyi@612 | 27 |
ENDIF(CPLEX_FOUND) |