examples/CMakeLists.txt
changeset 2 4c8956a7bdf4
equal deleted inserted replaced
-1:000000000000 0:d6aad9956643
       
     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