diff -r c445c931472f -r 4c8956a7bdf4 examples/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CMakeLists.txt Sun Dec 05 17:35:23 2010 +0100 @@ -0,0 +1,20 @@ +ADD_EXECUTABLE(glpsol + glpsol.c) + +TARGET_LINK_LIBRARIES(glpsol glpk-static) +IF(UNIX) + TARGET_LINK_LIBRARIES(glpsol glpk-static m) +ENDIF() + +INSTALL( + TARGETS glpsol + RUNTIME DESTINATION bin + COMPONENT bin +) + +ADD_TEST(NAME glpsol-test-1 + COMMAND glpsol --version) +ADD_TEST(NAME glpsol-test-2 + COMMAND glpsol --mps ${CMAKE_CURRENT_SOURCE_DIR}/plan.mps) +ADD_DEPENDENCIES(check glpsol) +