X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=2d988cbfd810aee5d93fa90c682d94fb33ae2e67;hb=510cbb97551ad78ab9e2cb2ac1a956fbcc5020b0;hp=341660534cbc30eb2a9acda23c1a461da87462af;hpb=39a0dfd807c382ec9ecf6fee3efedee4b8edd48f;p=bbtk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3416605..2d988cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,10 @@ #----------------------------------------------------------------------------- -PROJECT(BBTK) +CMAKE_MINIMUM_REQUIRED(VERSION 2.4) #----------------------------------------------------------------------------- -cmake_minimum_required(VERSION 2.4) +#----------------------------------------------------------------------------- +PROJECT(BBTK) +#----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Set global configuration of the toolkit @@ -19,39 +21,11 @@ SUBDIRS(kernel) SUBDIRS(packages) #----------------------------------------------------------------------------- +#----------------------------------------------------------------------------- +# The samples +#OPTION(BUILD_BBTK_SAMPLES "Build bbtk samples" OFF) +#IF(BUILD_BBTK_SAMPLES) +# SUBDIRS(samples) +#ENDIF(BUILD_BBTK_SAMPLES) +#----------------------------------------------------------------------------- -#---Documentation------------- -#http://www.cmake.org/Wiki/CMake:Packaging_With_CPack -#http://www.cmake.org/Wiki/CMake:CPackConfiguration -#http://www.cmake.org/Wiki/CMake:Install_Commands - - - -INCLUDE(InstallRequiredSystemLibraries) - -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Black Box Tool Kit (bbtk) - Creatis-LRMN") -SET(CPACK_PACKAGE_VENDOR "Creatis-LRMN") -SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt") -SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt") -SET(CPACK_PACKAGE_VERSION_MAJOR ${BBTK_MAJOR_VERSION}) -SET(CPACK_PACKAGE_VERSION_MINOR ${BBTK_MINOR_VERSION}) -SET(CPACK_PACKAGE_VERSION_PATCH ${BBTK_BUILD_VERSION}) -SET(CPACK_PACKAGE_INSTALL_DIRECTORY "bbtk-${BBTK_MAJOR_VERSION}.${BBTK_MINOR_VERSION}") -IF(WIN32 AND NOT UNIX) - # There is a bug in NSI that does not handle full unix paths properly. Make - # sure there is at least one set of four (4) backlasshes. -#EED SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/kernel/install/gnome/bbi-icon2.bmp") - SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin/BBI_EXE.exe") - SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} My Famous Project BBTK") - SET(CPACK_NSIS_HELP_LINK "http://www.creatis.insa-lyon.fr/software/bbtk") - SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.creatis.insa-lyon.fr") - SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr") - SET(CPACK_NSIS_MODIFY_PATH ON) -ELSE(WIN32 AND NOT UNIX) - SET(CPACK_STRIP_FILES "bin/bbi") - SET(CPACK_SOURCE_STRIP_FILES "") -ENDIF(WIN32 AND NOT UNIX) -SET(CPACK_PACKAGE_EXECUTABLES "bbi" "bbs interpreter" "bbhelp" "bbtk documentation" "bbed" "bbs Editor") - - -INCLUDE(CPack)