]> Creatis software - crea.git/blob - AdditionalcreaConfig.cmake.in
#3180 crea Feature New Normal Future - Set wx-config for wxWidgets 2.8
[crea.git] / AdditionalcreaConfig.cmake.in
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Santé)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and 
10 #  abiding by the rules of distribution of free software. You can  use, 
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
12 #  license as circulated by CEA, CNRS and INRIA at the following URL 
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability. 
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */  
25
26 #-----------------------------------------------------------------------------
27 ADD_DEFINITIONS(-DCREA_BUILD_SHARED)
28 SET(CREA_BUILT_WITH_WX @CREA_BUILT_WITH_WX@)
29 SET(CREA_BUILT_WITH_WX @CREA_BUILT_WITH_WX@)
30 SET(CREA_BUILT_WITH_VTK @CREA_BUILT_WITH_VTK@)
31 SET(CREA_CMAKE_REL_PATH @CREA_CMAKE_REL_PATH@)
32 SET(CREA_CMAKE_DIR ${crea_DIR}/${CREA_CMAKE_REL_PATH})
33 #-----------------------------------------------------------------------------
34 SET(CREA_COMPILE_MESSAGES @CREA_COMPILE_MESSAGES@)
35 SET(CREA_COMPILE_DEBUG_MESSAGES @CREA_COMPILE_DEBUG_MESSAGES@)
36 SET(CREA_COMPILE_WARNING_MESSAGES @CREA_COMPILE_WARNING_MESSAGES@)
37 SET(CREA_COMPILE_ERROR_MESSAGES @CREA_COMPILE_ERROR_MESSAGES@)
38 #-----------------------------------------------------------------------------
39
40 #-----------------------------------------------------------------------------
41 IF(CREA_VERBOSE_CMAKE)
42   MESSAGE(STATUS "* CREA_BUILT_WITH_WX            = ${CREA_BUILT_WITH_WX}")
43   MESSAGE(STATUS "* CREA_BUILT_WITH_VTK           = ${CREA_BUILT_WITH_VTK}")
44   MESSAGE(STATUS "* CREA_CMAKE_DIR                = ${CREA_CMAKE_DIR}")
45   MESSAGE(STATUS "* CREA_COMPILE_MESSAGES         = ${CREA_COMPILE_MESSAGES}")
46   MESSAGE(STATUS "* CREA_COMPILE_WARNING_MESSAGES = ${CREA_COMPILE_WARNING_MESSAGES}")
47   MESSAGE(STATUS "* CREA_COMPILE_ERROR_MESSAGES   = ${CREA_COMPILE_ERROR_MESSAGES}")
48   MESSAGE(STATUS "* CREA_COMPILE_DEBUG_MESSAGES   = ${CREA_COMPILE_DEBUG_MESSAGES}")
49 ENDIF(CREA_VERBOSE_CMAKE)
50 #-----------------------------------------------------------------------------
51
52 # If crea was compiled with WxWidget or vtk then have to find them
53 #IF(CREA_BUILT_WITH_WX OR CREA_BUILT_WITH_VTK)
54 #  INCLUDE(${CREA_CMAKE_DIR}/CREAMacro_Define.cmake)
55 #ENDIF(CREA_BUILT_WITH_WX OR CREA_BUILT_WITH_VTK)
56 #IF(CREA_BUILT_WITH_WX)
57 #  IF(NOT wxWidgets_FOUND)
58 #    MESSAGE(STATUS "=======================================")
59 #    MESSAGE(STATUS "crea was built with wxWidgets: have to find it...")
60 #    INCLUDE(${CREA_CMAKE_DIR}/CREAMacro_FindAndUseWxWidgets.cmake)
61 #    CREA_FIND_AND_USE_WXWIDGETS()
62 #  ENDIF(NOT wxWidgets_FOUND)
63 #ENDIF(CREA_BUILT_WITH_WX)
64 #IF(CREA_BUILT_WITH_VTK)
65 #  IF (NOT VTK_FOUND)
66 #    MESSAGE(STATUS "=======================================")
67 #    MESSAGE(STATUS "crea was built with VTK: have to find it...")
68 #    INCLUDE(${CREA_CMAKE_DIR}/CREAMacro_FindAndUseVTK.cmake)
69 #    CREA_FIND_AND_USE_VTK()
70 #  ENDIF (NOT VTK_FOUND)
71 #ENDIF(CREA_BUILT_WITH_VTK)
72
73