CMakeLists.txt
changeset 245 da1d220b176b
parent 225 c5a40fc54f1a
child 274 2a33883915bb
equal deleted inserted replaced
1:64b3486f559f 2:6500b36e281a
     3 #EXECUTE_PROCESS(
     3 #EXECUTE_PROCESS(
     4 #  COMMAND hg id -i
     4 #  COMMAND hg id -i
     5 #  OUTPUT_VARIABLE HG_REVISION
     5 #  OUTPUT_VARIABLE HG_REVISION
     6 #  OUTPUT_STRIP_TRAILING_WHITESPACE)
     6 #  OUTPUT_STRIP_TRAILING_WHITESPACE)
     7 
     7 
     8 SET(PROJECT_NAME "Lemon")
     8 SET(PROJECT_NAME "LEMON")
     9 SET(PROJECT_VERSION_MAJOR "0")
     9 SET(PROJECT_VERSION_MAJOR "0")
    10 SET(PROJECT_VERSION_MINOR "99")
    10 SET(PROJECT_VERSION_MINOR "99")
    11 SET(PROJECT_VERSION_PATCH "0")
    11 SET(PROJECT_VERSION_PATCH "0")
    12 SET(PROJECT_VERSION
    12 SET(PROJECT_VERSION
    13   "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
    13   "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
    34 IF(WIN32)
    34 IF(WIN32)
    35   SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
    35   SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
    36   SET(CPACK_PACKAGE_VENDOR
    36   SET(CPACK_PACKAGE_VENDOR
    37     "EGRES - Egervary Research Group on Combinatorial Optimization")
    37     "EGRES - Egervary Research Group on Combinatorial Optimization")
    38   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    38   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    39     "Lemon - Library of Efficient Models and Optimization in Networks")
    39     "LEMON - Library of Efficient Models and Optimization in Networks")
    40   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    40   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    41 
    41 
    42   SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
    42   SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
    43   SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
    43   SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
    44   SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
    44   SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
    55   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    55   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    56   #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library")
    56   #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library")
    57   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    57   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    58 
    58 
    59   #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    59   #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    60   #  "C++ header files for use with the Lemon library")
    60   #  "C++ header files for use with the LEMON library")
    61   #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    61   #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    62   #  "Static library used to build programs with Lemon")
    62   #  "Static library used to build programs with LEMON")
    63   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    63   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    64   #  "Doxygen generated documentation")
    64   #  "Doxygen generated documentation")
    65 
    65 
    66   #SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
    66   #SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
    67 
    67 
    68   #SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
    68   #SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
    69   #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
    69   #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
    70   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
    70   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
    71 
    71 
    72   #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
    72   #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
    73   #  "Components needed to develop software using Lemon")
    73   #  "Components needed to develop software using LEMON")
    74   #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
    74   #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
    75   #  "Documentation of Lemon")
    75   #  "Documentation of LEMON")
    76 
    76 
    77   #SET(CPACK_ALL_INSTALL_TYPES Full Developer)
    77   #SET(CPACK_ALL_INSTALL_TYPES Full Developer)
    78 
    78 
    79   #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
    79   #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
    80   #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
    80   #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)