Rev | Line | |
---|
[630] | 1 | SET(CPLEX_ROOT_DIR "" CACHE PATH "CPLEX root directory") |
---|
| 2 | |
---|
[612] | 3 | FIND_PATH(CPLEX_INCLUDE_DIR |
---|
| 4 | ilcplex/cplex.h |
---|
[630] | 5 | PATHS "C:/ILOG/CPLEX91/include" |
---|
| 6 | PATHS "/opt/ilog/cplex91/include" |
---|
| 7 | HINTS ${CPLEX_ROOT_DIR}/include |
---|
| 8 | ) |
---|
[612] | 9 | FIND_LIBRARY(CPLEX_LIBRARY |
---|
[630] | 10 | cplex91 |
---|
| 11 | PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda" |
---|
| 12 | PATHS "/opt/ilog/cplex91/bin" |
---|
| 13 | HINTS ${CPLEX_ROOT_DIR}/bin |
---|
| 14 | ) |
---|
[612] | 15 | |
---|
| 16 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 17 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR) |
---|
| 18 | |
---|
| 19 | FIND_PATH(CPLEX_BIN_DIR |
---|
| 20 | cplex91.dll |
---|
[630] | 21 | PATHS "C:/ILOG/CPLEX91/bin/x86_win32" |
---|
| 22 | ) |
---|
[612] | 23 | |
---|
| 24 | IF(CPLEX_FOUND) |
---|
| 25 | SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR}) |
---|
| 26 | SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY}) |
---|
| 27 | ENDIF(CPLEX_FOUND) |
---|
| 28 | |
---|
| 29 | MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR) |
---|
| 30 | |
---|
| 31 | IF(CPLEX_FOUND) |
---|
[622] | 32 | SET(LEMON_HAVE_LP TRUE) |
---|
| 33 | SET(LEMON_HAVE_MIP TRUE) |
---|
| 34 | SET(LEMON_HAVE_CPLEX TRUE) |
---|
[612] | 35 | ENDIF(CPLEX_FOUND) |
---|
Note: See
TracBrowser
for help on using the repository browser.