X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fcmake%2FBBTKDefineOptions.cmake;h=e89cfac2209793f01e1210e25d4e42c019181266;hb=2ab6bff6c5478054c4fdc9d37304b28151251acb;hp=ac242bf0c669cdf9e0130f5c44fa44ad198edf60;hpb=70db75992e0ccf5ad1fab5ccf9cec013877ea3d5;p=bbtk.git diff --git a/kernel/cmake/BBTKDefineOptions.cmake b/kernel/cmake/BBTKDefineOptions.cmake index ac242bf..e89cfac 100644 --- a/kernel/cmake/BBTKDefineOptions.cmake +++ b/kernel/cmake/BBTKDefineOptions.cmake @@ -1,3 +1,30 @@ + + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + + #----------------------------------------------------------------------------- # messages compilation options OPTION ( BBTK_COMPILE_MESSAGES "Compile bbtk messages ?" ON) @@ -13,15 +40,15 @@ OPTION(BUILD_BBTK_DOC "Build documentation for bbtk." OFF) SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_DOC) #----------------------------------------------------------------------------- IF(BUILD_BBTK_DOC) - + OPTION(BUILD_BBTK_DOC_PACKAGE - "Build bbtk packages documentation (bbi+dot)." ON) + "Build bbtk packages documentation (bbi+dot)." ON) OPTION(BUILD_BBTK_DOC_DOXYGEN - "Build doxygen documentation (doxygen)." ON) + "Build doxygen documentation (doxygen)." ON) OPTION(BUILD_BBTK_DOC_GUIDES_PDF - "Build bbtk Guides', PDF format (latex)." ON) + "Build bbtk Guides', PDF format (latex)." ON) OPTION(BUILD_BBTK_DOC_GUIDES_HTML - "Build bbtk Guides', HTML format (latex+tth)." ON) + "Build bbtk Guides', HTML format (latex+tth)." OFF) ELSE(BUILD_BBTK_DOC) @@ -53,9 +80,9 @@ ENDIF(BUILD_BBTK_DOC) #----------------------------------------------------------------------------- # BOOST C++ -SET(BBTK_SHIPPED_BOOST boost_1_35_0 CACHE INTERNAL "Shipped boost dir" FORCE) -OPTION(BBTK_USE_SHIPPED_BOOST - "Use the shipped boost C++ library (${BBTK_SHIPPED_BOOST})" ON) +#SET(BBTK_SHIPPED_BOOST boost_1_35_0 CACHE INTERNAL "Shipped boost dir" FORCE) +#OPTION(BBTK_USE_SHIPPED_BOOST +# "Use the shipped boost C++ library (${BBTK_SHIPPED_BOOST})" ON) #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- @@ -68,15 +95,28 @@ ENDIF(BBTK_USE_WXWIDGETS) #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- -OPTION(BBTK_USE_KWWIDGETS "Build bbtk with KWWidgets ?" OFF) +# LG 25/05/09 : KW NOT SUPPORTED ANYMORE +#OPTION(BBTK_USE_KWWIDGETS "Build bbtk with KWWidgets ?" OFF) IF (BBTK_USE_KWWIDGETS) - SET(USE_KW ON CACHE BOOL "Use KWWidgets" FORCE) + SET(USE_KWWIDGETS ON CACHE BOOL "Use KWWidgets" FORCE) ELSE (BBTK_USE_KWWIDGETS) - SET(USE_KW OFF CACHE BOOL "Use KWWidgets" FORCE) + SET(USE_KWWIDGETS OFF CACHE BOOL "Use KWWidgets" FORCE) ENDIF (BBTK_USE_KWWIDGETS) +#SWITCH_ON_IF_BUILD_ALL(BBTK_USE_KWWIDGETS) +#----------------------------------------------------------------------------- + +#----------------------------------------------------------------------------- +OPTION(BBTK_USE_QT "Build bbtk with QT ?" OFF) +IF (BBTK_USE_QT) + SET(USE_QT4 ON CACHE BOOL "Use QT" FORCE) +ELSE (BBTK_USE_QT) + SET(USE_QT4 OFF CACHE BOOL "Use QT" FORCE) +ENDIF (BBTK_USE_QT) +# CM Commented to avoid a bug with latest Boost version +# SWITCH_ON_IF_BUILD_ALL(BBTK_USE_QT) +# SWITCH_ON_IF_BUILD_ALL(BBTK_USE_QT) #----------------------------------------------------------------------------- -#SWITCH_ON_IF_BUILD_ALL(BUILD_KWWIDGETS) #----------------------------------------------------------------------------- IF(USE_ITK)