CMakeLists.txt
branch1.0
changeset 328 8c4d380787cf
parent 236 da953e387d31
child 496 17d918051964
child 500 2b6a20528f35
child 502 e58c511a5eba
equal deleted inserted replaced
2:6500b36e281a 3:ebc176d3a5ff
     1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
     1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
     2 
     2 
     3 #EXECUTE_PROCESS(
       
     4 #  COMMAND hg id -i
       
     5 #  OUTPUT_VARIABLE HG_REVISION
       
     6 #  OUTPUT_STRIP_TRAILING_WHITESPACE)
       
     7 
       
     8 SET(PROJECT_NAME "LEMON")
     3 SET(PROJECT_NAME "LEMON")
     9 SET(PROJECT_VERSION_MAJOR "0")
     4 SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.")
    10 SET(PROJECT_VERSION_MINOR "99")
       
    11 SET(PROJECT_VERSION_PATCH "0")
       
    12 SET(PROJECT_VERSION
       
    13   "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
       
    14 
     5 
    15 PROJECT(${PROJECT_NAME})
     6 PROJECT(${PROJECT_NAME})
    16 
     7 
    17 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
     8 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
    18 
     9 
    37     "EGRES - Egervary Research Group on Combinatorial Optimization")
    28     "EGRES - Egervary Research Group on Combinatorial Optimization")
    38   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    29   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    39     "LEMON - Library of Efficient Models and Optimization in Networks")
    30     "LEMON - Library of Efficient Models and Optimization in Networks")
    40   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    31   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    41 
    32 
    42   SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
       
    43   SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
       
    44   SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
       
    45   SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    33   SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    46 
    34 
    47   SET(CPACK_PACKAGE_INSTALL_DIRECTORY
    35   SET(CPACK_PACKAGE_INSTALL_DIRECTORY
    48     "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
    36     "${PROJECT_NAME} ${PROJECT_VERSION}")
    49   SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    37   SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    50     "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
    38     "${PROJECT_NAME} ${PROJECT_VERSION}")
    51 
    39 
    52   # Variables to generate a component-based installer.
    40   # Variables to generate a component-based installer.
    53   #SET(CPACK_COMPONENTS_ALL headers library html_documentation)
    41   #SET(CPACK_COMPONENTS_ALL headers library html_documentation)
    54 
    42 
    55   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    43   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")