alpar@1305: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) alpar@225: ladanyi@725: SET(PROJECT_NAME "LEMON") ladanyi@725: PROJECT(${PROJECT_NAME}) alpar@225: alpar@1033: INCLUDE(FindPythonInterp) alpar@1033: INCLUDE(FindWget) alpar@1033: ladanyi@725: IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake) ladanyi@725: INCLUDE(${PROJECT_SOURCE_DIR}/cmake/version.cmake) ladanyi@725: ELSEIF(DEFINED ENV{LEMON_VERSION}) ladanyi@725: SET(LEMON_VERSION $ENV{LEMON_VERSION} CACHE STRING "LEMON version string.") ladanyi@725: ELSE() ladanyi@725: EXECUTE_PROCESS( alpar@1134: COMMAND alpar@1134: hg log -r. --template "{latesttag}" alpar@1033: WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} alpar@1134: OUTPUT_VARIABLE HG_REVISION_TAG alpar@1033: ERROR_QUIET alpar@1033: OUTPUT_STRIP_TRAILING_WHITESPACE alpar@1033: ) alpar@1033: EXECUTE_PROCESS( alpar@1134: COMMAND alpar@1134: hg log -r. --template "{latesttagdistance}" ladanyi@725: WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} alpar@1134: OUTPUT_VARIABLE HG_REVISION_DIST ladanyi@725: ERROR_QUIET ladanyi@725: OUTPUT_STRIP_TRAILING_WHITESPACE ladanyi@725: ) alpar@1134: EXECUTE_PROCESS( alpar@1134: COMMAND alpar@1134: hg log -r. --template "{node|short}" alpar@1134: WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} alpar@1134: OUTPUT_VARIABLE HG_REVISION_ID alpar@1134: ERROR_QUIET alpar@1134: OUTPUT_STRIP_TRAILING_WHITESPACE alpar@1134: ) alpar@1134: alpar@1134: IF(HG_REVISION_TAG STREQUAL "") alpar@1033: SET(HG_REVISION_ID "hg-tip") alpar@1033: ELSE() alpar@1134: IF(HG_REVISION_TAG STREQUAL "null") alpar@1134: SET(HG_REVISION_TAG "trunk") alpar@1134: ELSEIF(HG_REVISION_TAG MATCHES "^r") alpar@1134: STRING(SUBSTRING ${HG_REVISION_TAG} 1 -1 HG_REVISION_TAG) alpar@1134: ENDIF() alpar@1134: IF(HG_REVISION_DIST STREQUAL "0") alpar@1134: SET(HG_REVISION ${HG_REVISION_TAG}) alpar@1033: ELSE() alpar@1134: SET(HG_REVISION alpar@1134: "${HG_REVISION_TAG}+${HG_REVISION_DIST}-${HG_REVISION_ID}") alpar@1033: ENDIF() ladanyi@727: ENDIF() alpar@1134: alpar@1134: SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.") ladanyi@725: ENDIF() ladanyi@725: ladanyi@725: SET(PROJECT_VERSION ${LEMON_VERSION}) alpar@225: ladanyi@596: SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) alpar@225: ladanyi@726: FIND_PACKAGE(Doxygen) ladanyi@726: FIND_PACKAGE(Ghostscript) alpar@1232: alpar@1232: SET(LEMON_ENABLE_GLPK YES CACHE STRING "Enable GLPK solver backend.") alpar@1232: SET(LEMON_ENABLE_ILOG YES CACHE STRING "Enable ILOG (CPLEX) solver backend.") alpar@1232: SET(LEMON_ENABLE_COIN YES CACHE STRING "Enable COIN solver backend.") alpar@1264: SET(LEMON_ENABLE_SOPLEX YES CACHE STRING "Enable SoPlex solver backend.") alpar@1232: alpar@1232: IF(LEMON_ENABLE_GLPK) alpar@1232: FIND_PACKAGE(GLPK 4.33) alpar@1232: ENDIF(LEMON_ENABLE_GLPK) alpar@1232: IF(LEMON_ENABLE_ILOG) alpar@1232: FIND_PACKAGE(ILOG) alpar@1232: ENDIF(LEMON_ENABLE_ILOG) alpar@1232: IF(LEMON_ENABLE_COIN) alpar@1232: FIND_PACKAGE(COIN) alpar@1232: ENDIF(LEMON_ENABLE_COIN) alpar@1264: IF(LEMON_ENABLE_SOPLEX) alpar@1264: FIND_PACKAGE(SOPLEX) alpar@1264: ENDIF(LEMON_ENABLE_SOPLEX) alpar@1232: alpar@1232: IF(GLPK_FOUND) alpar@1232: SET(LEMON_HAVE_LP TRUE) alpar@1232: SET(LEMON_HAVE_MIP TRUE) alpar@1232: SET(LEMON_HAVE_GLPK TRUE) alpar@1232: ENDIF(GLPK_FOUND) alpar@1232: IF(ILOG_FOUND) alpar@1232: SET(LEMON_HAVE_LP TRUE) alpar@1232: SET(LEMON_HAVE_MIP TRUE) alpar@1234: SET(LEMON_HAVE_CPLEX TRUE) alpar@1232: ENDIF(ILOG_FOUND) alpar@1232: IF(COIN_FOUND) alpar@1232: SET(LEMON_HAVE_LP TRUE) alpar@1232: SET(LEMON_HAVE_MIP TRUE) alpar@1232: SET(LEMON_HAVE_CLP TRUE) alpar@1232: SET(LEMON_HAVE_CBC TRUE) alpar@1232: ENDIF(COIN_FOUND) alpar@1264: IF(SOPLEX_FOUND) alpar@1264: SET(LEMON_HAVE_LP TRUE) alpar@1264: SET(LEMON_HAVE_SOPLEX TRUE) alpar@1264: ENDIF(SOPLEX_FOUND) alpar@1232: alpar@1232: IF(ILOG_FOUND) alpar@1232: SET(DEFAULT_LP "CPLEX") alpar@1232: SET(DEFAULT_MIP "CPLEX") alpar@1232: ELSEIF(COIN_FOUND) alpar@1232: SET(DEFAULT_LP "CLP") alpar@1232: SET(DEFAULT_MIP "CBC") alpar@1232: ELSEIF(GLPK_FOUND) alpar@1232: SET(DEFAULT_LP "GLPK") alpar@1232: SET(DEFAULT_MIP "GLPK") alpar@1264: ELSEIF(SOPLEX_FOUND) alpar@1264: SET(DEFAULT_LP "SOPLEX") alpar@1232: ENDIF() alpar@1232: alpar@1232: IF(NOT LEMON_DEFAULT_LP OR alpar@1232: (NOT ILOG_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CPLEX")) OR alpar@1232: (NOT COIN_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CLP")) OR alpar@1264: (NOT GLPK_FOUND AND (LEMON_DEFAULT_LP STREQUAL "GLPK")) OR alpar@1264: (NOT SOPLEX_FOUND AND (LEMON_DEFAULT_LP STREQUAL "SOPLEX"))) alpar@1232: SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING alpar@1264: "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)" FORCE) alpar@1300: ELSE() alpar@1300: SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING alpar@1300: "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)") alpar@1232: ENDIF() alpar@1232: IF(NOT LEMON_DEFAULT_MIP OR alpar@1232: (NOT ILOG_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "CPLEX")) OR alpar@1232: (NOT COIN_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "CBC")) OR alpar@1232: (NOT GLPK_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "GLPK"))) alpar@1232: SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING alpar@1232: "Default MIP solver backend (GLPK, CPLEX or CBC)" FORCE) alpar@1300: ELSE() alpar@1300: SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING alpar@1300: "Default MIP solver backend (GLPK, CPLEX or CBC)") alpar@1232: ENDIF() alpar@1232: ladanyi@496: alpar@1033: IF(DEFINED ENV{LEMON_CXX_WARNING}) alpar@1033: SET(CXX_WARNING $ENV{LEMON_CXX_WARNING}) alpar@1033: ELSE() alpar@1033: IF(CMAKE_COMPILER_IS_GNUCXX) alpar@1053: SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas") alpar@1033: SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb") alpar@1033: SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb") alpar@1033: ELSEIF(MSVC) alpar@1033: # This part is unnecessary 'casue the same is set by the lemon/core.h. alpar@1033: # Still keep it as an example. alpar@1033: SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996") alpar@1033: # Suppressed warnings: alpar@1033: # C4250: 'class1' : inherits 'class2::member' via dominance alpar@1033: # C4355: 'this' : used in base member initializer list alpar@1033: # C4503: 'function' : decorated name length exceeded, name was truncated alpar@1033: # C4800: 'type' : forcing value to bool 'true' or 'false' alpar@1033: # (performance warning) alpar@1033: # C4996: 'function': was declared deprecated alpar@1033: ELSE() alpar@1125: SET(CXX_WARNING "-Wall") alpar@1033: ENDIF() alpar@1033: ENDIF() alpar@1033: SET(LEMON_CXX_WARNING_FLAGS ${CXX_WARNING} CACHE STRING "LEMON warning flags.") alpar@1033: alpar@1033: SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}") alpar@1033: alpar@1185: IF(MSVC) alpar@1185: SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING alpar@1033: "Flags used by the C++ compiler during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_C_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING alpar@1033: "Flags used by the C compiler during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER alpar@1185: "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING alpar@1185: "Flags used for linking binaries during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER alpar@1185: "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING alpar@1185: "Flags used by the shared libraries linker during maintainer builds." alpar@1185: ) alpar@1185: ELSE() alpar@1185: SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING alpar@1185: "Flags used by the C++ compiler during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING alpar@1185: "Flags used by the C compiler during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER alpar@1310: "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING alpar@1033: "Flags used for linking binaries during maintainer builds." alpar@1185: ) alpar@1185: SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER alpar@1310: "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING alpar@1033: "Flags used by the shared libraries linker during maintainer builds." alpar@1185: ) alpar@1185: ENDIF() alpar@1185: alpar@1033: MARK_AS_ADVANCED( alpar@1033: CMAKE_CXX_FLAGS_MAINTAINER alpar@1033: CMAKE_C_FLAGS_MAINTAINER alpar@1033: CMAKE_EXE_LINKER_FLAGS_MAINTAINER alpar@1033: CMAKE_SHARED_LINKER_FLAGS_MAINTAINER ) alpar@1033: alpar@1033: IF(CMAKE_CONFIGURATION_TYPES) alpar@1033: LIST(APPEND CMAKE_CONFIGURATION_TYPES Maintainer) alpar@1033: LIST(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES) alpar@1033: SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING alpar@1033: "Add the configurations that we need" alpar@1033: FORCE) alpar@1033: endif() alpar@1033: alpar@1033: IF(NOT CMAKE_BUILD_TYPE) alpar@1033: SET(CMAKE_BUILD_TYPE "Release") alpar@1033: ENDIF() alpar@1033: alpar@1033: SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING alpar@1033: "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer." alpar@1033: FORCE ) alpar@1033: alpar@1033: alpar@515: INCLUDE(CheckTypeSize) ladanyi@724: CHECK_TYPE_SIZE("long long" LONG_LONG) ladanyi@724: SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG}) alpar@515: deba@1131: INCLUDE(FindThreads) alpar@1132: alpar@1132: IF(NOT LEMON_THREADING) alpar@1132: IF(CMAKE_USE_PTHREADS_INIT) alpar@1132: SET(LEMON_THREADING "Pthread") alpar@1132: ELSEIF(CMAKE_USE_WIN32_THREADS_INIT) alpar@1132: SET(LEMON_THREADING "Win32") alpar@1132: ELSE() alpar@1132: SET(LEMON_THREADING "None") alpar@1132: ENDIF() alpar@1132: ENDIF() alpar@1132: alpar@1132: SET( LEMON_THREADING "${LEMON_THREADING}" CACHE STRING alpar@1132: "Choose the threading library, options are: Pthread Win32 None." alpar@1132: FORCE ) alpar@1132: alpar@1132: IF(LEMON_THREADING STREQUAL "Pthread") alpar@1132: SET(LEMON_USE_PTHREAD TRUE) alpar@1132: ELSEIF(LEMON_THREADING STREQUAL "Win32") alpar@1132: SET(LEMON_USE_WIN32_THREADS TRUE) alpar@1132: ENDIF() alpar@791: alpar@225: ENABLE_TESTING() alpar@225: alpar@1033: IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") alpar@1033: ADD_CUSTOM_TARGET(check ALL COMMAND ${CMAKE_CTEST_COMMAND}) alpar@1033: ELSE() alpar@1033: ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND}) alpar@1033: ENDIF() alpar@1033: alpar@225: ADD_SUBDIRECTORY(lemon) ladanyi@596: IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) alpar@1031: ADD_SUBDIRECTORY(contrib) ladanyi@596: ADD_SUBDIRECTORY(demo) ladanyi@596: ADD_SUBDIRECTORY(tools) ladanyi@596: ADD_SUBDIRECTORY(doc) ladanyi@596: ADD_SUBDIRECTORY(test) ladanyi@726: ENDIF() alpar@225: ladanyi@722: CONFIGURE_FILE( ladanyi@722: ${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in ladanyi@722: ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake ladanyi@722: @ONLY ladanyi@722: ) ladanyi@722: IF(UNIX) ladanyi@722: INSTALL( ladanyi@722: FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake ladanyi@722: DESTINATION share/lemon/cmake ladanyi@722: ) ladanyi@722: ELSEIF(WIN32) ladanyi@722: INSTALL( ladanyi@722: FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake ladanyi@722: DESTINATION cmake ladanyi@722: ) ladanyi@726: ENDIF() ladanyi@722: alpar@1135: CONFIGURE_FILE( alpar@1135: ${PROJECT_SOURCE_DIR}/cmake/version.cmake.in alpar@1135: ${PROJECT_BINARY_DIR}/cmake/version.cmake alpar@1135: @ONLY alpar@1135: ) alpar@1135: alpar@1135: SET(ARCHIVE_BASE_NAME ${CMAKE_PROJECT_NAME}) alpar@1135: STRING(TOLOWER ${ARCHIVE_BASE_NAME} ARCHIVE_BASE_NAME) alpar@1135: SET(ARCHIVE_NAME ${ARCHIVE_BASE_NAME}-${PROJECT_VERSION}) alpar@1135: ADD_CUSTOM_TARGET(dist alpar@1135: COMMAND cmake -E remove_directory ${ARCHIVE_NAME} alpar@1135: COMMAND hg archive ${ARCHIVE_NAME} alpar@1135: COMMAND cmake -E copy cmake/version.cmake ${ARCHIVE_NAME}/cmake/version.cmake alpar@1135: COMMAND tar -czf ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_NAME} alpar@1135: COMMAND zip -r ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.zip ${ARCHIVE_NAME} alpar@1135: COMMAND cmake -E copy_directory doc/html ${ARCHIVE_NAME}/doc/html alpar@1135: COMMAND tar -czf ${ARCHIVE_NAME}.tar.gz ${ARCHIVE_NAME} alpar@1135: COMMAND zip -r ${ARCHIVE_NAME}.zip ${ARCHIVE_NAME} alpar@1135: COMMAND cmake -E copy_directory doc/html ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION} alpar@1135: COMMAND tar -czf ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION} alpar@1135: COMMAND zip -r ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.zip ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION} alpar@1135: COMMAND cmake -E remove_directory ${ARCHIVE_NAME} alpar@1135: COMMAND cmake -E remove_directory ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION} alpar@1135: DEPENDS html alpar@1135: WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) alpar@1135: alpar@1135: # CPACK config (Basically for NSIS) alpar@1033: IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) ladanyi@726: SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) ladanyi@726: SET(CPACK_PACKAGE_VENDOR "EGRES") ladanyi@726: SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ladanyi@726: "LEMON - Library for Efficient Modeling and Optimization in Networks") ladanyi@726: SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") alpar@225: ladanyi@726: SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) alpar@225: ladanyi@726: SET(CPACK_PACKAGE_INSTALL_DIRECTORY ladanyi@726: "${PROJECT_NAME} ${PROJECT_VERSION}") ladanyi@726: SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY ladanyi@726: "${PROJECT_NAME} ${PROJECT_VERSION}") alpar@225: ladanyi@726: SET(CPACK_COMPONENTS_ALL headers library html_documentation bin) alpar@225: ladanyi@726: SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers") ladanyi@726: SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library") ladanyi@726: SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities") ladanyi@726: SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation") alpar@225: ladanyi@726: SET(CPACK_COMPONENT_HEADERS_DESCRIPTION ladanyi@726: "C++ header files") ladanyi@726: SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION ladanyi@726: "DLL and import library") ladanyi@726: SET(CPACK_COMPONENT_BIN_DESCRIPTION ladanyi@726: "Command line utilities") ladanyi@726: SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION ladanyi@726: "Doxygen generated documentation") alpar@225: ladanyi@726: SET(CPACK_COMPONENT_HEADERS_DEPENDS library) alpar@225: ladanyi@726: SET(CPACK_COMPONENT_HEADERS_GROUP "Development") ladanyi@726: SET(CPACK_COMPONENT_LIBRARY_GROUP "Development") ladanyi@726: SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation") alpar@225: ladanyi@726: SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION ladanyi@726: "Components needed to develop software using LEMON") ladanyi@726: SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION ladanyi@726: "Documentation of LEMON") alpar@225: ladanyi@726: SET(CPACK_ALL_INSTALL_TYPES Full Developer) alpar@225: ladanyi@726: SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full) ladanyi@726: SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full) ladanyi@726: SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full) alpar@225: ladanyi@726: SET(CPACK_GENERATOR "NSIS") ladanyi@726: SET(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis/lemon.ico") ladanyi@726: SET(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}/cmake/nsis/uninstall.ico") ladanyi@726: #SET(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis\\\\installer.bmp") ladanyi@726: SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico") ladanyi@726: SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}") ladanyi@726: SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu") ladanyi@726: SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu") ladanyi@726: SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu") ladanyi@726: SET(CPACK_NSIS_CREATE_ICONS_EXTRA " ladanyi@726: CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\" ladanyi@726: ") ladanyi@726: SET(CPACK_NSIS_DELETE_ICONS_EXTRA " ladanyi@726: !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP ladanyi@726: Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\" ladanyi@726: ") alpar@225: ladanyi@726: INCLUDE(CPack) ladanyi@726: ENDIF()