1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # This software is governed by the CeCILL-B license under French law and
8 # abiding by the rules of distribution of free software. You can use,
9 # modify and/ or redistribute the software under the terms of the CeCILL-B
10 # license as circulated by CEA, CNRS and INRIA at the following URL
11 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 # or in the file LICENSE.txt.
14 # As a counterpart to the access to the source code and rights to copy,
15 # modify and redistribute granted by the license, users are provided only
16 # with a limited warranty and the software's author, the holder of the
17 # economic rights, and the successive licensors have only limited
20 # The fact that you are presently reading this means that you have had
21 # knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------ */
25 #-----------------------------------------------------------------------------
26 # MACRO TO ADD A COMPILER DEFINITION WHICH ADDS ALSO THE DEF
27 # INTO DOXYGEN PREDEFINED VAR
28 # (OTHERWISE DOXYGEN WOULD NOT PARSE THE FILES BLOCKED)
29 MACRO(CREA_DEFINE DEF)
30 MESSAGE(STATUS "* Added definition -D${DEF}")
31 ADD_DEFINITIONS( -D${DEF} )
33 ${CREA_DEFINITIONS};${DEF}
38 MARK_AS_ADVANCED(CREA_DEFINITIONS)
40 #-----------------------------------------------------------------------------
42 #-----------------------------------------------------------------------------
43 # MACRO TO ADD A COMPILER DEFINITION WITH VALUE WHICH ADDS ALSO THE DEF
44 # INTO DOXYGEN PREDEFINED VAR
45 # (OTHERWISE DOXYGEN WOULD NOT PARSE THE FILES BLOCKED)
46 MACRO(CREA_DEFINE_WITH_VAL DEF VAL)
47 MESSAGE(STATUS "* Added definition -D${DEF}=${VAL}")
48 ADD_DEFINITIONS( -D${DEF}=${VAL} )
50 ${CREA_DEFINITIONS};${DEF}=${VAL}
55 MARK_AS_ADVANCED(CREA_DEFINITIONS)
56 ENDMACRO(CREA_DEFINE_WITH_VAL)
57 #-----------------------------------------------------------------------------
59 #-----------------------------------------------------------------------------
60 MACRO(CREA_DEFINE_OPERATING_SYSTEM )
64 IF("${CMAKE_SYSTEM}" MATCHES "Linux")
66 ELSE("${CMAKE_SYSTEM}" MATCHES "Linux")
70 MESSAGE(FATAL_ERROR "${CMAKE_SYSTEM} unsupported ! Build at your own risks ! (remove this line from kernel/cmake/BBTKAddDefinitions.cmake)")
72 ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
77 SET(CMAKE_CREA_LIB_PATH bin)
81 if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
83 SET(CMAKE_CREA_LIB_PATH lib/creatools)
84 else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
86 SET(CMAKE_CREA_LIB_PATH lib64/creatools)
87 endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
89 SET(CMAKE_CREA_LIB_PATH lib/creatools)
91 if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
92 message("EED crea definitions --------APPLE------------ 64 0")
93 else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
94 message("EED crea definitions --------APPLE------------ 64 1")
95 endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
102 ENDMACRO(CREA_DEFINE_OPERATING_SYSTEM)
103 #-----------------------------------------------------------------------------