tools/CMakeLists.txt
changeset 574 c458e02723b1
child 596 ba659d676331
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/CMakeLists.txt	Mon Feb 23 11:52:45 2009 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +INCLUDE_DIRECTORIES(
     1.5 +  ${CMAKE_SOURCE_DIR}
     1.6 +  ${CMAKE_BINARY_DIR}
     1.7 +)
     1.8 +
     1.9 +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    1.10 +
    1.11 +ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
    1.12 +TARGET_LINK_LIBRARIES(lgf-gen lemon)
    1.13 +
    1.14 +ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
    1.15 +TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
    1.16 +
    1.17 +ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
    1.18 +TARGET_LINK_LIBRARIES(dimacs-solver lemon)
    1.19 +
    1.20 +INSTALL(
    1.21 +  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
    1.22 +  RUNTIME DESTINATION bin
    1.23 +  COMPONENT bin
    1.24 +)
    1.25 +
    1.26 +IF(NOT WIN32)
    1.27 +  INSTALL(
    1.28 +    FILES ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
    1.29 +    RUNTIME DESTINATION bin
    1.30 +    COMPONENT bin)
    1.31 +ENDIF(NOT WIN32)