1 |
SET(CPLEX_ROOT_DIR "" CACHE PATH "CPLEX root directory") |
|
2 |
|
|
1 | 3 |
FIND_PATH(CPLEX_INCLUDE_DIR |
2 | 4 |
ilcplex/cplex.h |
3 |
PATHS "C:/ILOG/CPLEX91/include") |
|
4 |
|
|
5 |
PATHS "C:/ILOG/CPLEX91/include" |
|
6 |
PATHS "/opt/ilog/cplex91/include" |
|
7 |
HINTS ${CPLEX_ROOT_DIR}/include |
|
8 |
) |
|
5 | 9 |
FIND_LIBRARY(CPLEX_LIBRARY |
6 |
NAMES cplex91 |
|
7 |
PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda") |
|
10 |
cplex91 |
|
11 |
PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda" |
|
12 |
PATHS "/opt/ilog/cplex91/bin" |
|
13 |
HINTS ${CPLEX_ROOT_DIR}/bin |
|
14 |
) |
|
8 | 15 |
|
9 | 16 |
INCLUDE(FindPackageHandleStandardArgs) |
10 | 17 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR) |
11 | 18 |
|
12 | 19 |
FIND_PATH(CPLEX_BIN_DIR |
13 | 20 |
cplex91.dll |
14 |
PATHS "C:/ILOG/CPLEX91/bin/x86_win32" |
|
21 |
PATHS "C:/ILOG/CPLEX91/bin/x86_win32" |
|
22 |
) |
|
15 | 23 |
|
16 | 24 |
IF(CPLEX_FOUND) |
17 | 25 |
SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR}) |
0 comments (0 inline)