COIN-OR::LEMON - Graph Library

source: lemon-benchmark/CMakeLists.txt @ 12:4eab99ff2666

Last change on this file since 12:4eab99ff2666 was 9:7768d68909e8, checked in by Alpar Juttner <alpar@…>, 13 years ago

Circulation test code added

File size: 5.3 KB
RevLine 
[0]1CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
[2]3## Here comes the name of your project:
4
[0]5SET(PROJECT_NAME "LEMON-PROJECT-TEMPLATE")
[2]6
7## Change 'hg-tip' to the current version number of your project if you wish.
[3]8## Optionally, you can leave it as is and set PROJECT_VERSION from
9## the cmake-gui when you make a release.
[2]10## The last parameter is a help string displayed by CMAKE.
11
[0]12SET(PROJECT_VERSION "hg-tip"
[3]13    CACHE STRING "${PROJECT_NAME} version string")
[0]14
[2]15## Do not edit this.
[0]16PROJECT(${PROJECT_NAME})
17
18SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
19
[2]20## The next part looks for LEMON. Typically, you don't want to modify it.
21##
[5]22## First, it tries to use LEMON as a CMAKE subproject by looking for
23## it in the 'lemon' or 'deps/lemon' subdirectories or in directory
24## given by the LEMON_SOURCE_ROOT_DIR variable.
25## If LEMON isn't there, then CMAKE will try to find an installed
26## version of LEMON. If it is installed at some non-standard place,
27## then you must tell its location in the LEMON_ROOT_DIR CMAKE config
28## variable. (Do not hard code it into your config! Others may keep
[2]29## LEMON at different places.)
30
[5]31FIND_PATH(LEMON_SOURCE_ROOT_DIR CMakeLists.txt
32  PATHS ${CMAKE_SOURCE_DIR}/lemon ${CMAKE_SOURCE_DIR}/deps/lemon
33  NO_DEFAULT_PATH
34  DOC "Location of LEMON source as a CMAKE subproject")
35
36IF(EXISTS ${LEMON_SOURCE_ROOT_DIR})
37  ADD_SUBDIRECTORY(${LEMON_SOURCE_ROOT_DIR} deps/lemon)
[1]38  SET(LEMON_INCLUDE_DIRS
[5]39    ${LEMON_SOURCE_ROOT_DIR}
40    ${CMAKE_BINARY_DIR}/deps/lemon
[1]41  )
42  SET(LEMON_LIBRARIES lemon)
[5]43  UNSET(LEMON_ROOT_DIR CACHE)
44  UNSET(LEMON_DIR CACHE)
45  UNSET(LEMON_INCLUDE_DIR CACHE)
46  UNSET(LEMON_LIBRARY CACHE)
[1]47ELSE()
48  FIND_PACKAGE(LEMON QUIET NO_MODULE)
49  FIND_PACKAGE(LEMON REQUIRED)
50ENDIF()
51
[2]52## This line finds doxygen (for document creation)
53
[0]54FIND_PACKAGE(Doxygen)
55
[2]56## These are the include directories used by the compiler.
57
[0]58INCLUDE_DIRECTORIES(
59  ${PROJECT_SOURCE_DIR}
60  ${PROJECT_BINARY_DIR}
61  ${LEMON_INCLUDE_DIRS}
62)
63
[2]64## Sometimes MSVC overwhelms you with compiler warnings which are impossible to
65## avoid. Then comment out these sections. Normally you won't need it as the
66## LEMON include headers suppress these warnings anyway.
67
68#IF(MSVC)
69#  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}
70#      /wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
[0]71# # Suppressed warnings:
72# # C4250: 'class1' : inherits 'class2::member' via dominance
73# # C4355: 'this' : used in base member initializer list
74# # C4503: 'function' : decorated name length exceeded, name was truncated
[2]75# # C4800: 'type' : forcing value to bool 'true' or 'false'
76# #        (performance warning)
[0]77# # C4996: 'function': was declared deprecated
78# ENDIF(MSVC)
79
80ENABLE_TESTING()
81
[3]82## The auxiliary doxygen files (.dox) should be placed in the 'doc'
[2]83## subdirectory. The next line includes the CMAKE config of that directory.
84
[0]85ADD_SUBDIRECTORY(doc)
86
[6]87ADD_SUBDIRECTORY(generators/netgen)
[8]88ADD_SUBDIRECTORY(data)
[6]89
[9]90ADD_SUBDIRECTORY(tests)
91
[2]92#######################################################################
93## CPACK configuration
94##
95## It is used to configure the .exe installer created by CPACK.
96## Consider editing these values:
[4]97##
[2]98## - CPACK_PACKAGE_VENDOR
99## - CPACK_PACKAGE_DESCRIPTION_SUMMARY
100## - CPACK_NSIS_HELP_LINK
101## - CPACK_NSIS_URL_INFO_ABOUT
102## - CPACK_NSIS_CONTACT
[4]103##
104## Additionally, you may want to change the icons/images used by the
105## NSIS installer, i.e. these variables:
106##
107## - CPACK_NSIS_MUI_ICON
108## - CPACK_PACKAGE_ICON
109## - CPACK_NSIS_INSTALLED_ICON_NAME
110##
111## and/or the files they point to.
[2]112#######################################################################
[0]113
114IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
115  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
116  SET(CPACK_PACKAGE_VENDOR "EGRES")
117  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
118      "LEMON PROJECT TEMPLATE - A Template Build Environment for LEMON")
119  SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
120
121  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
122
123  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
124      "${PROJECT_NAME}")
125  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
126      "${PROJECT_NAME}")
127
128  SET(CPACK_COMPONENTS_ALL
129      html_documentation
130      bin)
131
132  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
133  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
134
135  SET(CPACK_COMPONENT_BIN_DESCRIPTION
136      "Command line utilities")
137  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
138      "Doxygen generated documentation")
139
140  SET(CPACK_GENERATOR "NSIS")
[4]141
142  SET(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis/lemon-project.ico")
143  SET(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}/cmake/nsis/uninstall.ico")
144  SET(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")
145  SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon-project.ico")
146
[0]147  SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}")
148  SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu")
149  SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu")
150  SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu")
151  SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
152      CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\"
153      ")
154  SET(CPACK_NSIS_DELETE_ICONS_EXTRA "
155      !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
156      Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\"
157      ")
158
159  INCLUDE(CPack)
160ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
Note: See TracBrowser for help on using the repository browser.