COIN-OR::LEMON - Graph Library

Changeset 8:dda9b6665fde in lemon-project-template


Ignore:
Timestamp:
03/22/11 20:26:58 (14 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Tags:
tip
Message:

Improved install locations

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r7 r8  
    1717
    1818SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
     19
     20IF(UNIX)
     21  SET(INSTALL_BIN_DIR "bin" CACHE STRING
     22    "Subdir for installing the binaries")
     23  SET(INSTALL_DOC_DIR "share/doc/${PROJECT_NAME}"
     24    CACHE STRING
     25    "Subdir for installing the doc")
     26  SET(INSTALL_DATA_DIR "share/data/${PROJECT_NAME}"
     27    CACHE STRING
     28    "Subdir for installing the map data")
     29  SET(INSTALL_EXAMPLES_DIR "share/doc/${PROJECT_NAME}/examples"
     30    CACHE STRING
     31    "Subdir for installing the examples")
     32ELSE(UNIX)
     33  SET(INSTALL_BIN_DIR "." CACHE STRING
     34                  "Subdir for installing the binaries")
     35  SET(INSTALL_DOC_DIR "doc" CACHE STRING
     36                  "Subdir for installing the doc")
     37  SET(INSTALL_DATA_DIR "data" CACHE STRING
     38                  "Subdir for installing the map data")
     39  SET(INSTALL_EXAMPLES_DIR "examples" CACHE STRING
     40                       "Subdir for installing the examples")
     41ENDIF(UNIX)
    1942
    2043## The next part looks for LEMON. Typically, you don't want to modify it.
     
    6285)
    6386
     87IF(CMAKE_COMPILER_IS_GNUCXX)
     88  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
     89  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
     90ENDIF(CMAKE_COMPILER_IS_GNUCXX)
    6491ADD_SUBDIRECTORY(src)
    6592
     
    105132## - CPACK_PACKAGE_ICON
    106133## - CPACK_NSIS_INSTALLED_ICON_NAME
    107 ##
     134## 
    108135## and/or the files they point to.
    109136#######################################################################
     
    121148      "${PROJECT_NAME}")
    122149  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    123       "${PROJECT_NAME}")
     150      "${PROJECT_NAME} ${PROJECT_VERSION}")
    124151
    125   SET(CPACK_COMPONENTS_ALL
    126       html_documentation
    127       bin)
     152  SET(CPACK_COMPONENTS_ALL bin doc)
    128153
    129   SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
    130   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    131 
     154  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Executables")
    132155  SET(CPACK_COMPONENT_BIN_DESCRIPTION
    133156      "Command line utilities")
    134   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    135       "Doxygen generated documentation")
     157  SET(CPACK_COMPONENT_BIN_REQUIRED TRUE)
    136158
     159  SET(CPACK_COMPONENT_DOC_DISPLAY_NAME "Documentation")
     160  SET(CPACK_COMPONENT_DOC_DESCRIPTION
     161      "Documentation generated by Doxygen.")
     162
     163   
    137164  SET(CPACK_GENERATOR "NSIS")
    138165
  • doc/CMakeLists.txt

    r0 r8  
    2424  INSTALL(
    2525    DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
    26     DESTINATION share/doc
     26    DESTINATION ${INSTALL_DOC_DIR}
    2727    COMPONENT html_documentation)
    2828ENDIF(DOXYGEN_EXECUTABLE)
  • src/CMakeLists.txt

    r7 r8  
    2525INSTALL(
    2626  TARGETS lemon-project
    27   RUNTIME DESTINATION bin
     27  RUNTIME DESTINATION ${INSTALL_BIN_DIR}
    2828  COMPONENT bin
    2929)
Note: See TracChangeset for help on using the changeset viewer.