lemon-project-template-glpk
comparison CMakeLists.txt @ 0:368136e07d23
LEMON project template
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Tue, 26 May 2009 16:18:51 +0100 |
parents | |
children | 4721c71fdbfc |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e99f77ccf119 |
---|---|
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
2 | |
3 SET(PROJECT_NAME "LEMON-PROJECT-TEMPLATE") | |
4 SET(PROJECT_VERSION "hg-tip" | |
5 CACHE STRING "LEMON PROJECT TEMPLATE version string.") | |
6 | |
7 PROJECT(${PROJECT_NAME}) | |
8 | |
9 SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | |
10 | |
11 FIND_PACKAGE(LEMON REQUIRED) | |
12 FIND_PACKAGE(Doxygen) | |
13 | |
14 INCLUDE_DIRECTORIES( | |
15 ${PROJECT_SOURCE_DIR} | |
16 ${PROJECT_BINARY_DIR} | |
17 ${LEMON_INCLUDE_DIRS} | |
18 ) | |
19 | |
20 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) | |
21 | |
22 ADD_EXECUTABLE(lemon-project main.cc) | |
23 TARGET_LINK_LIBRARIES(lemon-project ${LEMON_LIBRARIES}) | |
24 INSTALL( | |
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 | |
40 ENABLE_TESTING() | |
41 | |
42 ADD_SUBDIRECTORY(doc) | |
43 | |
44 ###################################################################### | |
45 # CPACK configuration | |
46 ###################################################################### | |
47 | |
48 IF(${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) | |
88 ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) |