cmake/FindCPLEX.cmake
changeset 667 c3ce597c11ae
child 674 20dac2104519
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cmake/FindCPLEX.cmake	Thu Apr 23 07:29:50 2009 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +FIND_PATH(CPLEX_INCLUDE_DIR
     1.5 +  ilcplex/cplex.h
     1.6 +  PATHS "C:/ILOG/CPLEX91/include")
     1.7 +
     1.8 +FIND_LIBRARY(CPLEX_LIBRARY
     1.9 +  NAMES cplex91
    1.10 +  PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda")
    1.11 +
    1.12 +INCLUDE(FindPackageHandleStandardArgs)
    1.13 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
    1.14 +
    1.15 +FIND_PATH(CPLEX_BIN_DIR
    1.16 +  cplex91.dll
    1.17 +  PATHS "C:/ILOG/CPLEX91/bin/x86_win32")
    1.18 +
    1.19 +IF(CPLEX_FOUND)
    1.20 +  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
    1.21 +  SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
    1.22 +ENDIF(CPLEX_FOUND)
    1.23 +
    1.24 +MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
    1.25 +
    1.26 +IF(CPLEX_FOUND)
    1.27 +  SET(HAVE_LP TRUE)
    1.28 +  SET(HAVE_MIP TRUE)
    1.29 +  SET(HAVE_CPLEX TRUE)
    1.30 +ENDIF(CPLEX_FOUND)