CMakeLists.txt
changeset 359 e58c511a5eba
parent 274 2a33883915bb
child 360 64c2641286df
equal deleted inserted replaced
3:ebc176d3a5ff 5:cbe8687c69f6
    16 ADD_SUBDIRECTORY(demo)
    16 ADD_SUBDIRECTORY(demo)
    17 ADD_SUBDIRECTORY(doc)
    17 ADD_SUBDIRECTORY(doc)
    18 ADD_SUBDIRECTORY(test)
    18 ADD_SUBDIRECTORY(test)
    19 
    19 
    20 IF(WIN32)
    20 IF(WIN32)
    21   INSTALL(FILES ${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico
       
    22     DESTINATION bin)
       
    23 ENDIF(WIN32)
       
    24 
       
    25 IF(WIN32)
       
    26   SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
    21   SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
    27   SET(CPACK_PACKAGE_VENDOR
    22   SET(CPACK_PACKAGE_VENDOR "EGRES")
    28     "EGRES - Egervary Research Group on Combinatorial Optimization")
       
    29   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    23   SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
    30     "LEMON - Library of Efficient Models and Optimization in Networks")
    24     "LEMON - Library of Efficient Models and Optimization in Networks")
    31   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    25   SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    32 
    26 
    33   SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    27   SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    35   SET(CPACK_PACKAGE_INSTALL_DIRECTORY
    29   SET(CPACK_PACKAGE_INSTALL_DIRECTORY
    36     "${PROJECT_NAME} ${PROJECT_VERSION}")
    30     "${PROJECT_NAME} ${PROJECT_VERSION}")
    37   SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    31   SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    38     "${PROJECT_NAME} ${PROJECT_VERSION}")
    32     "${PROJECT_NAME} ${PROJECT_VERSION}")
    39 
    33 
    40   # Variables to generate a component-based installer.
    34   SET(CPACK_COMPONENTS_ALL headers library html_documentation)
    41   #SET(CPACK_COMPONENTS_ALL headers library html_documentation)
       
    42 
    35 
    43   #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    36   SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
    44   #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library")
    37   SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
    45   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    38   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
    46 
    39 
    47   #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    40   SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
    48   #  "C++ header files for use with the LEMON library")
    41     "C++ header files")
    49   #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    42   SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
    50   #  "Static library used to build programs with LEMON")
    43     "DLL and import library")
    51   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    44   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
    52   #  "Doxygen generated documentation")
    45     "Doxygen generated documentation")
    53 
    46 
    54   #SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
    47   SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
    55 
    48 
    56   #SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
    49   SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
    57   #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
    50   SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
    58   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
    51   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
    59 
    52 
    60   #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
    53   SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
    61   #  "Components needed to develop software using LEMON")
    54     "Components needed to develop software using LEMON")
    62   #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
    55   SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
    63   #  "Documentation of LEMON")
    56     "Documentation of LEMON")
    64 
    57 
    65   #SET(CPACK_ALL_INSTALL_TYPES Full Developer)
    58   SET(CPACK_ALL_INSTALL_TYPES Full Developer)
    66 
    59 
    67   #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
    60   SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
    68   #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
    61   SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
    69   #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
    62   SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
    70 
    63 
    71   SET(CPACK_GENERATOR "NSIS")
    64   SET(CPACK_GENERATOR "NSIS")
    72   SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico")
    65   SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico")
    73   SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/nsis/uninstall.ico")
    66   SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/nsis/uninstall.ico")
    74   #SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")
    67   #SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")