cmake/FindCPLEX.cmake
author Alpar Juttner <alpar@cs.elte.hu>
Wed, 29 Apr 2009 15:54:30 +0100
changeset 628 f5c710df882c
parent 612 c3ce597c11ae
child 630 89705c452130
permissions -rw-r--r--
Merge
ladanyi@612
     1
FIND_PATH(CPLEX_INCLUDE_DIR
ladanyi@612
     2
  ilcplex/cplex.h
ladanyi@612
     3
  PATHS "C:/ILOG/CPLEX91/include")
ladanyi@612
     4
ladanyi@612
     5
FIND_LIBRARY(CPLEX_LIBRARY
ladanyi@612
     6
  NAMES cplex91
ladanyi@612
     7
  PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda")
ladanyi@612
     8
ladanyi@612
     9
INCLUDE(FindPackageHandleStandardArgs)
ladanyi@612
    10
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
ladanyi@612
    11
ladanyi@612
    12
FIND_PATH(CPLEX_BIN_DIR
ladanyi@612
    13
  cplex91.dll
ladanyi@612
    14
  PATHS "C:/ILOG/CPLEX91/bin/x86_win32")
ladanyi@612
    15
ladanyi@612
    16
IF(CPLEX_FOUND)
ladanyi@612
    17
  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
ladanyi@612
    18
  SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
ladanyi@612
    19
ENDIF(CPLEX_FOUND)
ladanyi@612
    20
ladanyi@612
    21
MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
ladanyi@612
    22
ladanyi@612
    23
IF(CPLEX_FOUND)
ladanyi@622
    24
  SET(LEMON_HAVE_LP TRUE)
ladanyi@622
    25
  SET(LEMON_HAVE_MIP TRUE)
ladanyi@622
    26
  SET(LEMON_HAVE_CPLEX TRUE)
ladanyi@612
    27
ENDIF(CPLEX_FOUND)