COIN-OR::LEMON - Graph Library

source: glpk-cmake/examples/CMakeLists.txt @ 2:4c8956a7bdf4

tip
Last change on this file since 2:4c8956a7bdf4 was 2:4c8956a7bdf4, checked in by Alpar Juttner <alpar@…>, 9 years ago

Set up CMAKE build environment

File size: 389 bytes
Line 
1ADD_EXECUTABLE(glpsol
2  glpsol.c)
3
4TARGET_LINK_LIBRARIES(glpsol glpk-static)
5IF(UNIX)
6  TARGET_LINK_LIBRARIES(glpsol glpk-static m)
7ENDIF()
8
9INSTALL(
10  TARGETS glpsol
11  RUNTIME DESTINATION bin
12  COMPONENT bin
13)
14
15ADD_TEST(NAME glpsol-test-1
16  COMMAND glpsol --version)
17ADD_TEST(NAME glpsol-test-2
18  COMMAND glpsol --mps ${CMAKE_CURRENT_SOURCE_DIR}/plan.mps)
19ADD_DEPENDENCIES(check glpsol)
20
Note: See TracBrowser for help on using the repository browser.