COIN-OR::LEMON - Graph Library

source: lemon-benchmark/CMakeLists.txt @ 0:368136e07d23

Last change on this file since 0:368136e07d23 was 0:368136e07d23, checked in by Alpar Juttner <alpar@…>, 13 years ago

LEMON project template

File size: 2.8 KB
RevLine 
[0]1CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3SET(PROJECT_NAME "LEMON-PROJECT-TEMPLATE")
4SET(PROJECT_VERSION "hg-tip"
5                    CACHE STRING "LEMON PROJECT TEMPLATE version string.")
6
7PROJECT(${PROJECT_NAME})
8
9SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
10
11FIND_PACKAGE(LEMON REQUIRED)
12FIND_PACKAGE(Doxygen)
13
14INCLUDE_DIRECTORIES(
15  ${PROJECT_SOURCE_DIR}
16  ${PROJECT_BINARY_DIR}
17  ${LEMON_INCLUDE_DIRS}
18)
19
20LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
21
22ADD_EXECUTABLE(lemon-project main.cc)
23TARGET_LINK_LIBRARIES(lemon-project ${LEMON_LIBRARIES})
24INSTALL(
25  TARGETS lemon-project
26  RUNTIME DESTINATION bin
27  COMPONENT bin
28)
29
30# IF(MSVC)
31#   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4503 /wd4800 /wd4996")
32# # Suppressed warnings:
33# # C4250: 'class1' : inherits 'class2::member' via dominance
34# # C4355: 'this' : used in base member initializer list
35# # C4503: 'function' : decorated name length exceeded, name was truncated
36# # C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
37# # C4996: 'function': was declared deprecated
38# ENDIF(MSVC)
39
40ENABLE_TESTING()
41
42ADD_SUBDIRECTORY(doc)
43
44######################################################################
45# CPACK configuration
46######################################################################
47
48IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
49  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
50  SET(CPACK_PACKAGE_VENDOR "EGRES")
51  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
52      "LEMON PROJECT TEMPLATE - A Template Build Environment for LEMON")
53  SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
54
55  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
56
57  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
58      "${PROJECT_NAME}")
59  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
60      "${PROJECT_NAME}")
61
62  SET(CPACK_COMPONENTS_ALL
63      html_documentation
64      bin)
65
66  SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
67  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
68
69  SET(CPACK_COMPONENT_BIN_DESCRIPTION
70      "Command line utilities")
71  SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
72      "Doxygen generated documentation")
73
74  SET(CPACK_GENERATOR "NSIS")
75  SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}")
76  SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu")
77  SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu")
78  SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu")
79  SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
80      CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\"
81      ")
82  SET(CPACK_NSIS_DELETE_ICONS_EXTRA "
83      !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
84      Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\"
85      ")
86
87  INCLUDE(CPack)
88ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
Note: See TracBrowser for help on using the repository browser.