test/CMakeLists.txt
changeset 1254 c5cd8960df74
parent 1228 45befc97b1bc
parent 1230 caf16813b1e8
child 1264 4000b7ef4e01
equal deleted inserted replaced
82:bc37e1b19fac 84:d2a74a197063
    67 
    67 
    68   IF(LEMON_HAVE_GLPK)
    68   IF(LEMON_HAVE_GLPK)
    69     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
    69     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
    70   ENDIF()
    70   ENDIF()
    71   IF(LEMON_HAVE_CPLEX)
    71   IF(LEMON_HAVE_CPLEX)
    72     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
    72     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${ILOG_LIBRARIES})
    73   ENDIF()
    73   ENDIF()
    74   IF(LEMON_HAVE_CLP)
    74   IF(LEMON_HAVE_CLP)
    75     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
    75     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
    76   ENDIF()
    76   ENDIF()
    77 
    77 
    91 
    91 
    92   IF(WIN32 AND LEMON_HAVE_CPLEX)
    92   IF(WIN32 AND LEMON_HAVE_CPLEX)
    93     GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
    93     GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
    94     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
    94     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
    95     ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
    95     ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
    96       COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex.dll ${TARGET_PATH}
    96       COMMAND ${CMAKE_COMMAND} -E copy ${ILOG_CPLEX_DLL} ${TARGET_PATH}
    97     )
    97     )
    98   ENDIF()
    98   ENDIF()
    99 ENDIF()
    99 ENDIF()
   100 
   100 
   101 IF(LEMON_HAVE_MIP)
   101 IF(LEMON_HAVE_MIP)
   109 
   109 
   110   IF(LEMON_HAVE_GLPK)
   110   IF(LEMON_HAVE_GLPK)
   111     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
   111     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
   112   ENDIF()
   112   ENDIF()
   113   IF(LEMON_HAVE_CPLEX)
   113   IF(LEMON_HAVE_CPLEX)
   114     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
   114     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${ILOG_LIBRARIES})
   115   ENDIF()
   115   ENDIF()
   116   IF(LEMON_HAVE_CBC)
   116   IF(LEMON_HAVE_CBC)
   117     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
   117     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
   118   ENDIF()
   118   ENDIF()
   119 
   119 
   133 
   133 
   134   IF(WIN32 AND LEMON_HAVE_CPLEX)
   134   IF(WIN32 AND LEMON_HAVE_CPLEX)
   135     GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
   135     GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
   136     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
   136     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
   137     ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
   137     ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
   138       COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex.dll ${TARGET_PATH}
   138       COMMAND ${CMAKE_COMMAND} -E copy ${ILOG_CPLEX_DLL} ${TARGET_PATH}
   139     )
   139     )
   140   ENDIF()
   140   ENDIF()
   141 ENDIF()
   141 ENDIF()
   142 
   142 
   143 FOREACH(TEST_NAME ${TESTS})
   143 FOREACH(TEST_NAME ${TESTS})