examples/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 05 Dec 2010 17:35:23 +0100
changeset 2 4c8956a7bdf4
permissions -rw-r--r--
Set up CMAKE build environment
     1 ADD_EXECUTABLE(glpsol
     2   glpsol.c)
     3 
     4 TARGET_LINK_LIBRARIES(glpsol glpk-static)
     5 IF(UNIX)
     6   TARGET_LINK_LIBRARIES(glpsol glpk-static m)
     7 ENDIF()
     8 
     9 INSTALL(
    10   TARGETS glpsol
    11   RUNTIME DESTINATION bin
    12   COMPONENT bin
    13 )
    14 
    15 ADD_TEST(NAME glpsol-test-1
    16   COMMAND glpsol --version)
    17 ADD_TEST(NAME glpsol-test-2
    18   COMMAND glpsol --mps ${CMAKE_CURRENT_SOURCE_DIR}/plan.mps)
    19 ADD_DEPENDENCIES(check glpsol)
    20