1 #-----------------------------------------------------------------------------
3 #-----------------------------------------------------------------------------
5 #---Documentation-------------
6 #http://www.cmake.org/Wiki/CMake:Packaging_With_CPack
7 #http://www.cmake.org/Wiki/CMake:CPackConfiguration
8 #http://www.cmake.org/Wiki/CMake:Install_Commands
11 INCLUDE(InstallRequiredSystemLibraries)
13 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME} - CREATIS")
14 SET(CPACK_PACKAGE_VENDOR "CREATIS")
15 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.txt")
16 SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE.txt")
17 SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION})
18 SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION})
19 SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION})
24 #IF (BUILD_BBTK_PACKAGE_creaMaracasVisu)
26 # SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\bbtk-${BBTK_VERSION}")
28 # SET(CMAKE_INSTALL_PREFIX C:/CreaTools/bbtk-${BBTK_VERSION})
31 #ELSE (BUILD_BBTK_PACKAGE_creaMaracasVisu)
33 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
35 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools/${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
39 SET(CMAKE_INSTALL_PREFIX C:/CreaTools/${PROJECT_NAME})
43 #ENDIF (BUILD_BBTK_PACKAGE_creaMaracasVisu)
47 IF(WIN32 AND NOT UNIX)
48 # There is a bug in NSI that does not handle full unix paths properly. Make
49 # sure there is at least one set of four (4) backlasshes.
50 #EED SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/kernel/install/gnome/bbi-icon2.bmp")
51 # SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin/BBI_EXE.exe")
52 SET(CPACK_NSIS_DISPLAY_NAME "${PROJECT_NAME}")
53 SET(CPACK_NSIS_HELP_LINK "http://www.creatis.insa-lyon.fr/creatools/${PROJECT_NAME}")
54 SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.creatis.insa-lyon.fr/creatools/${PROJECT_NAME}")
55 SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr")
56 SET(CPACK_NSIS_MODIFY_PATH ON)
57 ELSE(WIN32 AND NOT UNIX)
58 # SET(CPACK_STRIP_FILES "bin/bbi")
59 SET(CPACK_SOURCE_STRIP_FILES "")
60 ENDIF(WIN32 AND NOT UNIX)
61 #SET(CPACK_PACKAGE_EXECUTABLES "TestWxGimmickDialog" "Gimmick!")
67 # Aditional INSTALL for CPACK mecanism.
70 # INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.dll DESTINATION bin )