1.1 --- a/cmake/FindCPLEX.cmake Sun Feb 24 19:44:14 2013 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,40 +0,0 @@
1.4 -SET(CPLEX_ROOT_DIR "" CACHE PATH "CPLEX root directory")
1.5 -
1.6 -FIND_PATH(CPLEX_INCLUDE_DIR
1.7 - ilcplex/cplex.h
1.8 - PATHS "C:/ILOG/CPLEX/include"
1.9 - PATHS "/opt/ilog/cplex/include"
1.10 - HINTS ${CPLEX_ROOT_DIR}/include
1.11 -)
1.12 -FIND_LIBRARY(CPLEX_LIBRARY
1.13 - cplex
1.14 - PATHS "C:/ILOG/CPLEX/lib/msvc7/stat_mda"
1.15 - PATHS "/opt/ilog/cplex/bin"
1.16 - HINTS ${CPLEX_ROOT_DIR}/bin
1.17 - HINTS ${CPLEX_ROOT_DIR}/lib
1.18 -)
1.19 -
1.20 -INCLUDE(FindPackageHandleStandardArgs)
1.21 -FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
1.22 -
1.23 -FIND_PATH(CPLEX_BIN_DIR
1.24 - cplex.dll
1.25 - PATHS "C:/ILOG/CPLEX/bin/x86_win32"
1.26 - HINTS ${CPLEX_ROOT_DIR}/bin
1.27 -)
1.28 -
1.29 -IF(CPLEX_FOUND)
1.30 - SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
1.31 - SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
1.32 - IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
1.33 - SET(CPLEX_LIBRARIES "${CPLEX_LIBRARIES};m;pthread")
1.34 - ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
1.35 -ENDIF(CPLEX_FOUND)
1.36 -
1.37 -MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
1.38 -
1.39 -IF(CPLEX_FOUND)
1.40 - SET(LEMON_HAVE_LP TRUE)
1.41 - SET(LEMON_HAVE_MIP TRUE)
1.42 - SET(LEMON_HAVE_CPLEX TRUE)
1.43 -ENDIF(CPLEX_FOUND)