COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r627 r621  
    3737  unionfind_test)
    3838
    39 IF(LEMON_HAVE_LP)
     39IF(HAVE_LP)
    4040  ADD_EXECUTABLE(lp_test lp_test.cc)
    4141  SET(LP_TEST_LIBS lemon)
    42   IF(LEMON_HAVE_GLPK)
     42  IF(HAVE_GLPK)
    4343    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
    44   ENDIF(LEMON_HAVE_GLPK)
    45   IF(LEMON_HAVE_CPLEX)
     44  ENDIF(HAVE_GLPK)
     45  IF(HAVE_CPLEX)
    4646    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
    47   ENDIF(LEMON_HAVE_CPLEX)
    48   IF(LEMON_HAVE_CLP)
     47  ENDIF(HAVE_CPLEX)
     48  IF(HAVE_CLP)
    4949    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
    50   ENDIF(LEMON_HAVE_CLP)
     50  ENDIF(HAVE_CLP)
    5151  TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
    5252  ADD_TEST(lp_test lp_test)
    5353
    54   IF(WIN32 AND LEMON_HAVE_GLPK)
     54  IF(WIN32 AND HAVE_GLPK)
    5555    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
    5656    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     
    6060      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
    6161    )
    62   ENDIF(WIN32 AND LEMON_HAVE_GLPK)
    63   IF(WIN32 AND LEMON_HAVE_CPLEX)
     62  ENDIF(WIN32 AND HAVE_GLPK)
     63  IF(WIN32 AND HAVE_CPLEX)
    6464    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
    6565    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     
    6767      COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
    6868    )
    69   ENDIF(WIN32 AND LEMON_HAVE_CPLEX)
    70 ENDIF(LEMON_HAVE_LP)
     69  ENDIF(WIN32 AND HAVE_CPLEX)
     70ENDIF(HAVE_LP)
    7171
    72 IF(LEMON_HAVE_MIP)
     72IF(HAVE_MIP)
    7373  ADD_EXECUTABLE(mip_test mip_test.cc)
    7474  SET(MIP_TEST_LIBS lemon)
    75   IF(LEMON_HAVE_GLPK)
     75  IF(HAVE_GLPK)
    7676    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
    77   ENDIF(LEMON_HAVE_GLPK)
    78   IF(LEMON_HAVE_CPLEX)
     77  ENDIF(HAVE_GLPK)
     78  IF(HAVE_CPLEX)
    7979    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
    80   ENDIF(LEMON_HAVE_CPLEX)
    81   IF(LEMON_HAVE_CBC)
     80  ENDIF(HAVE_CPLEX)
     81  IF(HAVE_CBC)
    8282    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
    83   ENDIF(LEMON_HAVE_CBC)
     83  ENDIF(HAVE_CBC)
    8484  TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
    8585  ADD_TEST(mip_test mip_test)
    8686
    87   IF(WIN32 AND LEMON_HAVE_GLPK)
     87  IF(WIN32 AND HAVE_GLPK)
    8888    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
    8989    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     
    9393      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
    9494    )
    95   ENDIF(WIN32 AND LEMON_HAVE_GLPK)
    96   IF(WIN32 AND LEMON_HAVE_CPLEX)
     95  ENDIF(WIN32 AND HAVE_GLPK)
     96  IF(WIN32 AND HAVE_CPLEX)
    9797    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
    9898    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     
    100100      COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
    101101    )
    102   ENDIF(WIN32 AND LEMON_HAVE_CPLEX)
    103 ENDIF(LEMON_HAVE_MIP)
     102  ENDIF(WIN32 AND HAVE_CPLEX)
     103ENDIF(HAVE_MIP)
    104104
    105105FOREACH(TEST_NAME ${TESTS})
Note: See TracChangeset for help on using the changeset viewer.