CMAKE builds the tools/ dir, too (#228)
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 23 Feb 2009 11:52:45 +0000
changeset 511c458e02723b1
parent 510 28b154307c0d
child 513 88bd39ef7d98
CMAKE builds the tools/ dir, too (#228)
CMakeLists.txt
tools/CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Mon Feb 23 11:49:57 2009 +0000
     1.2 +++ b/CMakeLists.txt	Mon Feb 23 11:52:45 2009 +0000
     1.3 @@ -39,6 +39,7 @@
     1.4  
     1.5  ADD_SUBDIRECTORY(lemon)
     1.6  ADD_SUBDIRECTORY(demo)
     1.7 +ADD_SUBDIRECTORY(tools)
     1.8  ADD_SUBDIRECTORY(doc)
     1.9  ADD_SUBDIRECTORY(test)
    1.10  
    1.11 @@ -56,16 +57,19 @@
    1.12    SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    1.13      "${PROJECT_NAME} ${PROJECT_VERSION}")
    1.14  
    1.15 -  SET(CPACK_COMPONENTS_ALL headers library html_documentation)
    1.16 +  SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)
    1.17  
    1.18    SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    1.19    SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
    1.20 +  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
    1.21    SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    1.22  
    1.23    SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    1.24      "C++ header files")
    1.25    SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    1.26      "DLL and import library")
    1.27 +  SET(CPACK_COMPONENT_BIN_DESCRIPTION
    1.28 +    "Command line utilities")
    1.29    SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    1.30      "Doxygen generated documentation")
    1.31  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/CMakeLists.txt	Mon Feb 23 11:52:45 2009 +0000
     2.3 @@ -0,0 +1,28 @@
     2.4 +INCLUDE_DIRECTORIES(
     2.5 +  ${CMAKE_SOURCE_DIR}
     2.6 +  ${CMAKE_BINARY_DIR}
     2.7 +)
     2.8 +
     2.9 +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    2.10 +
    2.11 +ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
    2.12 +TARGET_LINK_LIBRARIES(lgf-gen lemon)
    2.13 +
    2.14 +ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
    2.15 +TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
    2.16 +
    2.17 +ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
    2.18 +TARGET_LINK_LIBRARIES(dimacs-solver lemon)
    2.19 +
    2.20 +INSTALL(
    2.21 +  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
    2.22 +  RUNTIME DESTINATION bin
    2.23 +  COMPONENT bin
    2.24 +)
    2.25 +
    2.26 +IF(NOT WIN32)
    2.27 +  INSTALL(
    2.28 +    FILES ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
    2.29 +    RUNTIME DESTINATION bin
    2.30 +    COMPONENT bin)
    2.31 +ENDIF(NOT WIN32)