Location: LEMON/LEMON-official/CMakeLists.txt - annotation
Load file history
Generate and install LEMONConfig.cmake
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | r225:c5a40fc54f1a r225:c5a40fc54f1a r503:64c2641286df r503:64c2641286df r503:64c2641286df r503:64c2641286df r503:64c2641286df r503:64c2641286df r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r596:ba659d676331 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r496:17d918051964 r667:c3ce597c11ae r668:b536eaacb39b r496:17d918051964 r515:7992dcb0d0e6 r540:8a144437db7d r515:7992dcb0d0e6 r225:c5a40fc54f1a r225:c5a40fc54f1a r225:c5a40fc54f1a r596:ba659d676331 r596:ba659d676331 r596:ba659d676331 r596:ba659d676331 r596:ba659d676331 r596:ba659d676331 r225:c5a40fc54f1a r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r722:c5dc4d3124aa r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r705:ebdcc68fe79e r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 r225:c5a40fc54f1a r599:56a86a363c12 r599:56a86a363c12 r599:56a86a363c12 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
IF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/version.cmake)
ELSE(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
SET(PROJECT_NAME "LEMON")
SET(PROJECT_VERSION "hg-tip" CACHE STRING "LEMON version string.")
ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/cmake/version.cmake)
PROJECT(${PROJECT_NAME})
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
INCLUDE(FindDoxygen)
INCLUDE(FindGhostscript)
FIND_PACKAGE(GLPK 4.33)
FIND_PACKAGE(CPLEX)
FIND_PACKAGE(COIN)
INCLUDE(CheckTypeSize)
CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG)
ENABLE_TESTING()
ADD_SUBDIRECTORY(lemon)
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
ADD_SUBDIRECTORY(demo)
ADD_SUBDIRECTORY(tools)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(test)
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
CONFIGURE_FILE(
${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in
${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
@ONLY
)
IF(UNIX)
INSTALL(
FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
DESTINATION share/lemon/cmake
)
ELSEIF(WIN32)
INSTALL(
FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
DESTINATION cmake
)
ENDIF(UNIX)
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
IF(WIN32)
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
SET(CPACK_PACKAGE_VENDOR "EGRES")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"LEMON - Library for Efficient Modeling and Optimization in Networks")
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
SET(CPACK_PACKAGE_INSTALL_DIRECTORY
"${PROJECT_NAME} ${PROJECT_VERSION}")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"${PROJECT_NAME} ${PROJECT_VERSION}")
SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)
SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library")
SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")
SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation")
SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
"C++ header files")
SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION
"DLL and import library")
SET(CPACK_COMPONENT_BIN_DESCRIPTION
"Command line utilities")
SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION
"Doxygen generated documentation")
SET(CPACK_COMPONENT_HEADERS_DEPENDS library)
SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
SET(CPACK_COMPONENT_LIBRARY_GROUP "Development")
SET(CPACK_COMPONENT_HTML_DOCUMENTATION_GROUP "Documentation")
SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
"Components needed to develop software using LEMON")
SET(CPACK_COMPONENT_GROUP_DOCUMENTATION_DESCRIPTION
"Documentation of LEMON")
SET(CPACK_ALL_INSTALL_TYPES Full Developer)
SET(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Developer Full)
SET(CPACK_COMPONENT_HTML_DOCUMENTATION_INSTALL_TYPES Full)
SET(CPACK_GENERATOR "NSIS")
SET(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis/lemon.ico")
SET(CPACK_NSIS_MUI_UNIICON "${PROJECT_SOURCE_DIR}/cmake/nsis/uninstall.ico")
#SET(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/cmake/nsis\\\\installer.bmp")
SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\lemon.ico")
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} ${PROJECT_NAME}")
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\lemon.cs.elte.hu")
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\lemon.cs.elte.hu")
SET(CPACK_NSIS_CONTACT "lemon-user@lemon.cs.elte.hu")
SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
CreateShortCut \\\"$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\share\\\\doc\\\\index.html\\\"
")
SET(CPACK_NSIS_DELETE_ICONS_EXTRA "
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete \\\"$SMPROGRAMS\\\\$MUI_TEMP\\\\Documentation.lnk\\\"
")
INCLUDE(CPack)
ENDIF(WIN32)
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
|