cmake/FindCPLEX.cmake
author Peter Kovacs <kpeter@inf.elte.hu>
Wed, 29 Apr 2009 14:25:51 +0200
changeset 641 756a5ec551c8
child 627 20dac2104519
permissions -rw-r--r--
Rename Flow to Value in the flow algorithms (#266)

We agreed that using Flow for the value type is misleading, since
a flow should be rather a function on the arcs, not a single value.

This patch reverts the changes of [dacc2cee2b4c] for Preflow and
Circulation.
ladanyi@620
     1
FIND_PATH(CPLEX_INCLUDE_DIR
ladanyi@620
     2
  ilcplex/cplex.h
ladanyi@620
     3
  PATHS "C:/ILOG/CPLEX91/include")
ladanyi@620
     4
ladanyi@620
     5
FIND_LIBRARY(CPLEX_LIBRARY
ladanyi@620
     6
  NAMES cplex91
ladanyi@620
     7
  PATHS "C:/ILOG/CPLEX91/lib/msvc7/stat_mda")
ladanyi@620
     8
ladanyi@620
     9
INCLUDE(FindPackageHandleStandardArgs)
ladanyi@620
    10
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
ladanyi@620
    11
ladanyi@620
    12
FIND_PATH(CPLEX_BIN_DIR
ladanyi@620
    13
  cplex91.dll
ladanyi@620
    14
  PATHS "C:/ILOG/CPLEX91/bin/x86_win32")
ladanyi@620
    15
ladanyi@620
    16
IF(CPLEX_FOUND)
ladanyi@620
    17
  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
ladanyi@620
    18
  SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
ladanyi@620
    19
ENDIF(CPLEX_FOUND)
ladanyi@620
    20
ladanyi@620
    21
MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
ladanyi@620
    22
ladanyi@620
    23
IF(CPLEX_FOUND)
ladanyi@620
    24
  SET(HAVE_LP TRUE)
ladanyi@620
    25
  SET(HAVE_MIP TRUE)
ladanyi@620
    26
  SET(HAVE_CPLEX TRUE)
ladanyi@620
    27
ENDIF(CPLEX_FOUND)