examples/CMakeLists.txt
changeset 2 4c8956a7bdf4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/CMakeLists.txt	Sun Dec 05 17:35:23 2010 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +ADD_EXECUTABLE(glpsol
     1.5 +  glpsol.c)
     1.6 +
     1.7 +TARGET_LINK_LIBRARIES(glpsol glpk-static)
     1.8 +IF(UNIX)
     1.9 +  TARGET_LINK_LIBRARIES(glpsol glpk-static m)
    1.10 +ENDIF()
    1.11 +
    1.12 +INSTALL(
    1.13 +  TARGETS glpsol
    1.14 +  RUNTIME DESTINATION bin
    1.15 +  COMPONENT bin
    1.16 +)
    1.17 +
    1.18 +ADD_TEST(NAME glpsol-test-1
    1.19 +  COMMAND glpsol --version)
    1.20 +ADD_TEST(NAME glpsol-test-2
    1.21 +  COMMAND glpsol --mps ${CMAKE_CURRENT_SOURCE_DIR}/plan.mps)
    1.22 +ADD_DEPENDENCIES(check glpsol)
    1.23 +