COIN-OR::LEMON - Graph Library

source: lemon-main/cmake/FindCPLEX.cmake @ 641:756a5ec551c8

Last change on this file since 641:756a5ec551c8 was 620:c3ce597c11ae, checked in by Akos Ladanyi <ladanyi@…>, 16 years ago

FindCPLEX for CMake (#256)

File size: 664 bytes
Line 
1FIND_PATH(CPLEX_INCLUDE_DIR
2  ilcplex/cplex.h
3  PATHS "C:/ILOG/CPLEX91/include")
4
5FIND_LIBRARY(CPLEX_LIBRARY
6  NAMES cplex91
7  PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda")
8
9INCLUDE(FindPackageHandleStandardArgs)
10FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
11
12FIND_PATH(CPLEX_BIN_DIR
13  cplex91.dll
14  PATHS "C:/ILOG/CPLEX91/bin/x86_win32")
15
16IF(CPLEX_FOUND)
17  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
18  SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
19ENDIF(CPLEX_FOUND)
20
21MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
22
23IF(CPLEX_FOUND)
24  SET(HAVE_LP TRUE)
25  SET(HAVE_MIP TRUE)
26  SET(HAVE_CPLEX TRUE)
27ENDIF(CPLEX_FOUND)
Note: See TracBrowser for help on using the repository browser.