equal
deleted
inserted
replaced
82 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) |
82 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) |
83 ADD_TEST(lp_test lp_test) |
83 ADD_TEST(lp_test lp_test) |
84 ADD_DEPENDENCIES(check lp_test) |
84 ADD_DEPENDENCIES(check lp_test) |
85 |
85 |
86 IF(WIN32 AND LEMON_HAVE_GLPK) |
86 IF(WIN32 AND LEMON_HAVE_GLPK) |
87 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
|
88 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
|
89 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
87 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
90 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
88 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll $<TARGET_FILE_DIR:lp_test> |
91 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
89 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll $<TARGET_FILE_DIR:lp_test> |
92 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
90 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll $<TARGET_FILE_DIR:lp_test> |
93 ) |
91 ) |
94 ENDIF() |
92 ENDIF() |
95 |
93 |
96 IF(WIN32 AND LEMON_HAVE_CPLEX) |
94 IF(WIN32 AND LEMON_HAVE_CPLEX) |
97 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
95 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |