]> Creatis software - creaRigidRegistration.git/blob - install/CMakeLists.txt
*** empty log message ***
[creaRigidRegistration.git] / install / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # CPACK+NSIS PACKAGING
3 #-----------------------------------------------------------------------------
4
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
9
10
11 INCLUDE(InstallRequiredSystemLibraries)
12
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})
20
21
22
23
24 #IF (BUILD_BBTK_PACKAGE_creaMaracasVisu)
25 #
26 #  SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\bbtk-${BBTK_VERSION}")
27 #  IF(WIN32)
28 #    SET(CMAKE_INSTALL_PREFIX C:/CreaTools/bbtk-${BBTK_VERSION})
29 #  ENDIF(WIN32)
30
31 #ELSE (BUILD_BBTK_PACKAGE_creaMaracasVisu)
32 IF(WIN32)
33         SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
34 ELSE(WIN32)
35         SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools/${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
36 ENDIF(WIN32)
37   
38   IF(WIN32)
39    SET(CMAKE_INSTALL_PREFIX C:/CreaTools/${PROJECT_NAME})
40   ENDIF(WIN32)
41
42
43 #ENDIF (BUILD_BBTK_PACKAGE_creaMaracasVisu)
44
45
46
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!")
62   
63
64 INCLUDE(CPack)
65
66
67 # Aditional INSTALL for CPACK mecanism.
68 IF (WIN32)
69
70 #  INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.dll DESTINATION bin ) 
71
72 ENDIF (WIN32)
73
74
75
76
77
78