COIN-OR::LEMON - Graph Library

source: lemon-main/CMakeLists.txt @ 1199:15282595e6f4

Last change on this file since 1199:15282595e6f4 was 1198:2236d00ca778, checked in by Alpar Juttner <alpar@…>, 6 years ago

Merge #615

File size: 14.0 KB
RevLine 
[1107]1CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
[225]2
[1119]3IF(POLICY CMP0048)
4  CMAKE_POLICY(SET CMP0048 OLD)
5ENDIF(POLICY CMP0048)
[1114]6
[1128]7IF(POLICY CMP0043)
8  CMAKE_POLICY(SET CMP0043 OLD)
9ENDIF(POLICY CMP0043)
10
[1137]11IF(POLICY CMP0026)
12  #This is for copying the dll's needed by glpk (in lp_test and mip_test)
13  CMAKE_POLICY(SET CMP0026 OLD)
14ENDIF(POLICY CMP0026)
15
[678]16SET(PROJECT_NAME "LEMON")
17PROJECT(${PROJECT_NAME})
[225]18
[927]19INCLUDE(FindPythonInterp)
20INCLUDE(FindWget)
21
[678]22IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
23  INCLUDE(${PROJECT_SOURCE_DIR}/cmake/version.cmake)
24ELSEIF(DEFINED ENV{LEMON_VERSION})
25  SET(LEMON_VERSION $ENV{LEMON_VERSION} CACHE STRING "LEMON version string.")
26ELSE()
27  EXECUTE_PROCESS(
[982]28    COMMAND
29    hg log -r. --template "{latesttag}"
[927]30    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
[982]31    OUTPUT_VARIABLE HG_REVISION_TAG
[927]32    ERROR_QUIET
33    OUTPUT_STRIP_TRAILING_WHITESPACE
34  )
35  EXECUTE_PROCESS(
[982]36    COMMAND
37    hg log -r. --template "{latesttagdistance}"
[678]38    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
[982]39    OUTPUT_VARIABLE HG_REVISION_DIST
[678]40    ERROR_QUIET
41    OUTPUT_STRIP_TRAILING_WHITESPACE
42  )
[982]43  EXECUTE_PROCESS(
44    COMMAND
45    hg log -r. --template "{node|short}"
46    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
47    OUTPUT_VARIABLE HG_REVISION_ID
48    ERROR_QUIET
49    OUTPUT_STRIP_TRAILING_WHITESPACE
50  )
51
52  IF(HG_REVISION_TAG STREQUAL "")
[927]53    SET(HG_REVISION_ID "hg-tip")
54  ELSE()
[982]55    IF(HG_REVISION_TAG STREQUAL "null")
56      SET(HG_REVISION_TAG "trunk")
57    ELSEIF(HG_REVISION_TAG MATCHES "^r")
58      STRING(SUBSTRING ${HG_REVISION_TAG} 1 -1 HG_REVISION_TAG)
59    ENDIF()
60    IF(HG_REVISION_DIST STREQUAL "0")
61      SET(HG_REVISION ${HG_REVISION_TAG})
[927]62    ELSE()
[982]63      SET(HG_REVISION
64        "${HG_REVISION_TAG}+${HG_REVISION_DIST}-${HG_REVISION_ID}")
[927]65    ENDIF()
[680]66  ENDIF()
[982]67
68  SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
[678]69ENDIF()
70
71SET(PROJECT_VERSION ${LEMON_VERSION})
[225]72
[549]73SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
[225]74
[679]75FIND_PACKAGE(Doxygen)
76FIND_PACKAGE(Ghostscript)
[1064]77
[1134]78IF(WIN32)
79  SET(LEMON_WIN32 TRUE)
80ENDIF(WIN32)
81
[1064]82SET(LEMON_ENABLE_GLPK YES CACHE STRING "Enable GLPK solver backend.")
83SET(LEMON_ENABLE_ILOG YES CACHE STRING "Enable ILOG (CPLEX) solver backend.")
84SET(LEMON_ENABLE_COIN YES CACHE STRING "Enable COIN solver backend.")
[1088]85SET(LEMON_ENABLE_SOPLEX YES CACHE STRING "Enable SoPlex solver backend.")
[1064]86
87IF(LEMON_ENABLE_GLPK)
88  FIND_PACKAGE(GLPK 4.33)
[1180]89  IF(GLPK_FOUND)
90    SET(LEMON_HAVE_LP TRUE)
91    SET(LEMON_HAVE_MIP TRUE)
92    SET(LEMON_HAVE_GLPK TRUE)
93  ENDIF(GLPK_FOUND)
[1064]94ENDIF(LEMON_ENABLE_GLPK)
95IF(LEMON_ENABLE_ILOG)
96  FIND_PACKAGE(ILOG)
[1180]97  IF(ILOG_FOUND)
98    SET(LEMON_HAVE_LP TRUE)
99    SET(LEMON_HAVE_MIP TRUE)
100    SET(LEMON_HAVE_CPLEX TRUE)
101  ENDIF(ILOG_FOUND)
[1064]102ENDIF(LEMON_ENABLE_ILOG)
103IF(LEMON_ENABLE_COIN)
104  FIND_PACKAGE(COIN)
[1180]105  IF(COIN_FOUND)
106    SET(LEMON_HAVE_LP TRUE)
107    SET(LEMON_HAVE_MIP TRUE)
108    SET(LEMON_HAVE_CLP TRUE)
109    SET(LEMON_HAVE_CBC TRUE)
110  ENDIF(COIN_FOUND)
[1064]111ENDIF(LEMON_ENABLE_COIN)
[1088]112IF(LEMON_ENABLE_SOPLEX)
113  FIND_PACKAGE(SOPLEX)
[1180]114  IF(SOPLEX_FOUND)
115    SET(LEMON_HAVE_LP TRUE)
116    SET(LEMON_HAVE_SOPLEX TRUE)
117  ENDIF(SOPLEX_FOUND)
[1088]118ENDIF(LEMON_ENABLE_SOPLEX)
[1064]119
120IF(ILOG_FOUND)
121  SET(DEFAULT_LP "CPLEX")
122  SET(DEFAULT_MIP "CPLEX")
123ELSEIF(COIN_FOUND)
124  SET(DEFAULT_LP "CLP")
125  SET(DEFAULT_MIP "CBC")
126ELSEIF(GLPK_FOUND)
127  SET(DEFAULT_LP "GLPK")
128  SET(DEFAULT_MIP "GLPK")
[1088]129ELSEIF(SOPLEX_FOUND)
130  SET(DEFAULT_LP "SOPLEX")
[1064]131ENDIF()
132
133IF(NOT LEMON_DEFAULT_LP OR
134    (NOT ILOG_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CPLEX")) OR
135    (NOT COIN_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CLP")) OR
[1088]136    (NOT GLPK_FOUND AND (LEMON_DEFAULT_LP STREQUAL "GLPK")) OR
137    (NOT SOPLEX_FOUND AND (LEMON_DEFAULT_LP STREQUAL "SOPLEX")))
[1064]138  SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING
[1088]139    "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)" FORCE)
[1105]140ELSE()
141  SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING
142    "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)")
[1064]143ENDIF()
144IF(NOT LEMON_DEFAULT_MIP OR
145    (NOT ILOG_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "CPLEX")) OR
146    (NOT COIN_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "CBC")) OR
147    (NOT GLPK_FOUND AND (LEMON_DEFAULT_MIP STREQUAL "GLPK")))
148  SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING
149    "Default MIP solver backend (GLPK, CPLEX or CBC)" FORCE)
[1105]150ELSE()
151  SET(LEMON_DEFAULT_MIP ${DEFAULT_MIP} CACHE STRING
152    "Default MIP solver backend (GLPK, CPLEX or CBC)")
[1064]153ENDIF()
154
[1197]155IF( ( ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") AND
156      ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER_EQUAL "4.8") )
157    OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
158    OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
159    )
160  SET(LEMON_NO_UNUSED_LOCAL_TYPEDEF_WARNINGS TRUE)
161ENDIF()
[473]162
[927]163IF(DEFINED ENV{LEMON_CXX_WARNING})
164  SET(CXX_WARNING $ENV{LEMON_CXX_WARNING})
165ELSE()
[1197]166  IF( ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
167      OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
168      )
[940]169    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")
[927]170    SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
171    SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
[1197]172  ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
173    SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wno-unknown-pragmas")
174    SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
175    SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
[927]176  ELSEIF(MSVC)
177    # This part is unnecessary 'casue the same is set by the lemon/core.h.
[1123]178    # Still kept as an example.
179
180    # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996")
181
[927]182    # Suppressed warnings:
183    # C4250: 'class1' : inherits 'class2::member' via dominance
[1123]184    # C4267: conversion from 'size_t' to 'type', possible loss of data
[927]185    # C4355: 'this' : used in base member initializer list
186    # C4503: 'function' : decorated name length exceeded, name was truncated
187    # C4800: 'type' : forcing value to bool 'true' or 'false'
188    #        (performance warning)
189    # C4996: 'function': was declared deprecated
190  ELSE()
[975]191    SET(CXX_WARNING "-Wall")
[927]192  ENDIF()
193ENDIF()
194SET(LEMON_CXX_WARNING_FLAGS ${CXX_WARNING} CACHE STRING "LEMON warning flags.")
195
196SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
197
[1017]198IF(MSVC)
[1122]199  SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
[1017]200  SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
[927]201    "Flags used by the C++ compiler during maintainer builds."
[1017]202    )
203  SET( CMAKE_C_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
[927]204    "Flags used by the C compiler during maintainer builds."
[1017]205    )
206  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
207    "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
208    "Flags used for linking binaries during maintainer builds."
209    )
210  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
211    "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
212    "Flags used by the shared libraries linker during maintainer builds."
213    )
214ELSE()
215  SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING
216    "Flags used by the C++ compiler during maintainer builds."
217    )
218  SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING
219    "Flags used by the C compiler during maintainer builds."
220    )
221  SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
[1111]222    "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING
[927]223    "Flags used for linking binaries during maintainer builds."
[1017]224    )
225  SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER
[1111]226    "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING
[927]227    "Flags used by the shared libraries linker during maintainer builds."
[1017]228    )
229ENDIF()
230
[927]231MARK_AS_ADVANCED(
232    CMAKE_CXX_FLAGS_MAINTAINER
233    CMAKE_C_FLAGS_MAINTAINER
234    CMAKE_EXE_LINKER_FLAGS_MAINTAINER
235    CMAKE_SHARED_LINKER_FLAGS_MAINTAINER )
236
237IF(CMAKE_CONFIGURATION_TYPES)
238  LIST(APPEND CMAKE_CONFIGURATION_TYPES Maintainer)
239  LIST(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES)
240  SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
241      "Add the configurations that we need"
242      FORCE)
243 endif()
244
245IF(NOT CMAKE_BUILD_TYPE)
246  SET(CMAKE_BUILD_TYPE "Release")
247ENDIF()
248
249SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
250    "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer."
251    FORCE )
252
[1128]253SET_DIRECTORY_PROPERTIES(PROPERTIES
254  COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG"
255  COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG"
256)
[927]257
[496]258INCLUDE(CheckTypeSize)
[677]259CHECK_TYPE_SIZE("long long" LONG_LONG)
260SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
[496]261
[979]262INCLUDE(FindThreads)
[980]263
264IF(NOT LEMON_THREADING)
265  IF(CMAKE_USE_PTHREADS_INIT)
266    SET(LEMON_THREADING "Pthread")
267  ELSEIF(CMAKE_USE_WIN32_THREADS_INIT)
268    SET(LEMON_THREADING "Win32")
269  ELSE()
270    SET(LEMON_THREADING "None")
271  ENDIF()
272ENDIF()
273
274SET( LEMON_THREADING "${LEMON_THREADING}" CACHE STRING
275  "Choose the threading library, options are: Pthread Win32 None."
276  FORCE )
277
278IF(LEMON_THREADING STREQUAL "Pthread")
279  SET(LEMON_USE_PTHREAD TRUE)
280ELSEIF(LEMON_THREADING STREQUAL "Win32")
281  SET(LEMON_USE_WIN32_THREADS TRUE)
282ENDIF()
[744]283
[225]284ENABLE_TESTING()
285
[1130]286
287INCLUDE(CheckCXXCompilerFlag)
[1131]288CHECK_CXX_COMPILER_FLAG("-std=c++11" LEMON_CXX11)
289IF(LEMON_CXX11)
[1130]290  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
291ENDIF()
292
293
[927]294IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
295  ADD_CUSTOM_TARGET(check ALL COMMAND ${CMAKE_CTEST_COMMAND})
296ELSE()
297  ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
298ENDIF()
299
[225]300ADD_SUBDIRECTORY(lemon)
[549]301IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
[925]302  ADD_SUBDIRECTORY(contrib)
[549]303  ADD_SUBDIRECTORY(demo)
304  ADD_SUBDIRECTORY(tools)
305  ADD_SUBDIRECTORY(doc)
306  ADD_SUBDIRECTORY(test)
[679]307ENDIF()
[225]308
[675]309CONFIGURE_FILE(
310  ${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in
311  ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
312  @ONLY
313)
314IF(UNIX)
315  INSTALL(
316    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
317    DESTINATION share/lemon/cmake
318  )
319ELSEIF(WIN32)
320  INSTALL(
321    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
322    DESTINATION cmake
323  )
[679]324ENDIF()
[675]325
[983]326CONFIGURE_FILE(
327  ${PROJECT_SOURCE_DIR}/cmake/version.cmake.in
328  ${PROJECT_BINARY_DIR}/cmake/version.cmake
329  @ONLY
330)
331
332SET(ARCHIVE_BASE_NAME ${CMAKE_PROJECT_NAME})
333STRING(TOLOWER ${ARCHIVE_BASE_NAME} ARCHIVE_BASE_NAME)
334SET(ARCHIVE_NAME ${ARCHIVE_BASE_NAME}-${PROJECT_VERSION})
335ADD_CUSTOM_TARGET(dist
336  COMMAND cmake -E remove_directory ${ARCHIVE_NAME}
337  COMMAND hg archive ${ARCHIVE_NAME}
338  COMMAND cmake -E copy cmake/version.cmake ${ARCHIVE_NAME}/cmake/version.cmake
339  COMMAND tar -czf ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_NAME}
340  COMMAND zip -r ${ARCHIVE_BASE_NAME}-nodoc-${PROJECT_VERSION}.zip ${ARCHIVE_NAME}
341  COMMAND cmake -E copy_directory doc/html ${ARCHIVE_NAME}/doc/html
342  COMMAND tar -czf ${ARCHIVE_NAME}.tar.gz ${ARCHIVE_NAME}
343  COMMAND zip -r ${ARCHIVE_NAME}.zip ${ARCHIVE_NAME}
344  COMMAND cmake -E copy_directory doc/html ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}
345  COMMAND tar -czf ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.tar.gz ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}
346  COMMAND zip -r ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}.zip ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}
347  COMMAND cmake -E remove_directory ${ARCHIVE_NAME}
348  COMMAND cmake -E remove_directory ${ARCHIVE_BASE_NAME}-doc-${PROJECT_VERSION}
349  DEPENDS html
350  WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
351
352# CPACK config (Basically for NSIS)
[927]353IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
[679]354  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
355  SET(CPACK_PACKAGE_VENDOR "EGRES")
356  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
357    "LEMON - Library for Efficient Modeling and Optimization in Networks")
358  SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
[225]359
[679]360  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
[225]361
[679]362  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
363    "${PROJECT_NAME} ${PROJECT_VERSION}")
364  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
365    "${PROJECT_NAME} ${PROJECT_VERSION}")
[225]366
[679]367  SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)
[225]368
[679]369  SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
370  SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
371  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
372  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
[225]373
[679]374  SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
375    "C++ header files")
376  SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
377    "DLL and import library")
378  SET(CPACK_COMPONENT_BIN_DESCRIPTION
379    "Command line utilities")
380  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
381    "Doxygen generated documentation")
[225]382
[679]383  SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
[225]384
[679]385  SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
386  SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
387  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
[225]388
[679]389  SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
390    "Components needed to develop software using LEMON")
391  SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
392    "Documentation of LEMON")
[225]393
[679]394  SET(CPACK_ALL_INSTALL_TYPES Full Developer)
[225]395
[679]396  SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
397  SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
398  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
[225]399
[679]400  SET(CPACK_GENERATOR "NSIS")
401  SET(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis/lemon.ico")
402  SET(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}/cmake/nsis/uninstall.ico")
403  #SET(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")
404  SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico")
405  SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}")
406  SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu")
407  SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu")
408  SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu")
409  SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
410    CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\"
411    ")
412  SET(CPACK_NSIS_DELETE_ICONS_EXTRA "
413    !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
414    Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\"
415    ")
[225]416
[679]417  INCLUDE(CPack)
418ENDIF()
Note: See TracBrowser for help on using the repository browser.