alpar@225: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) alpar@225: ladanyi@236: SET(PROJECT_NAME "LEMON") ladanyi@274: SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.") alpar@225: alpar@225: PROJECT(${PROJECT_NAME}) alpar@225: alpar@225: SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) alpar@225: alpar@225: INCLUDE(FindDoxygen) alpar@225: INCLUDE(FindGhostscript) alpar@225: alpar@225: ENABLE_TESTING() alpar@225: alpar@225: ADD_SUBDIRECTORY(lemon) alpar@225: ADD_SUBDIRECTORY(demo) alpar@225: ADD_SUBDIRECTORY(doc) alpar@225: ADD_SUBDIRECTORY(test) alpar@225: alpar@225: IF(WIN32) alpar@225: INSTALL(FILES ${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico alpar@225: DESTINATION bin) alpar@225: ENDIF(WIN32) alpar@225: alpar@225: IF(WIN32) alpar@225: SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) alpar@225: SET(CPACK_PACKAGE_VENDOR alpar@225: "EGRES - Egervary Research Group on Combinatorial Optimization") alpar@225: SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ladanyi@236: "LEMON - Library of Efficient Models and Optimization in Networks") alpar@225: SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") alpar@225: alpar@225: SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) alpar@225: alpar@225: SET(CPACK_PACKAGE_INSTALL_DIRECTORY ladanyi@274: "${PROJECT_NAME} ${PROJECT_VERSION}") alpar@225: SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY ladanyi@274: "${PROJECT_NAME} ${PROJECT_VERSION}") alpar@225: alpar@225: # Variables to generate a component-based installer. alpar@225: #SET(CPACK_COMPONENTS_ALL headers library html_documentation) alpar@225: alpar@225: #SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers") alpar@225: #SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Static library") alpar@225: #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation") alpar@225: alpar@225: #SET(CPACK_COMPONENT_HEADERS_DESCRIPTION ladanyi@236: # "C++ header files for use with the LEMON library") alpar@225: #SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION ladanyi@236: # "Static library used to build programs with LEMON") alpar@225: #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION alpar@225: # "Doxygen generated documentation") alpar@225: alpar@225: #SET(CPACK_COMPONENT_HEADERS_DEPENDS library) alpar@225: alpar@225: #SET(CPACK_COMPONENT_HEADERS_GROUP "Development") alpar@225: #SET(CPACK_COMPONENT_LIBRARY_GROUP "Development") alpar@225: #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation") alpar@225: alpar@225: #SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION ladanyi@236: # "Components needed to develop software using LEMON") alpar@225: #SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION ladanyi@236: # "Documentation of LEMON") alpar@225: alpar@225: #SET(CPACK_ALL_INSTALL_TYPES Full Developer) alpar@225: alpar@225: #SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full) alpar@225: #SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full) alpar@225: #SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full) alpar@225: alpar@225: SET(CPACK_GENERATOR "NSIS") alpar@225: SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis/lemon.ico") alpar@225: SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/nsis/uninstall.ico") alpar@225: #SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/cmake/nsis\\\\installer.bmp") alpar@225: SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico") alpar@225: SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}") alpar@225: SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu") alpar@225: SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu") alpar@225: SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu") alpar@225: SET(CPACK_NSIS_CREATE_ICONS_EXTRA " alpar@225: CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\doc\\\\index.html\\\" alpar@225: ") alpar@225: SET(CPACK_NSIS_DELETE_ICONS_EXTRA " alpar@225: !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP alpar@225: Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\" alpar@225: ") alpar@225: alpar@225: INCLUDE(CPack) alpar@225: ENDIF(WIN32)