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