2 #-----------------------------------------------------------------------------
3 # MACRO TO ADD A COMPILER DEFINITION WHICH ADDS ALSO THE DEF
4 # INTO DOXYGEN PREDEFINED VAR
5 # (OTHERWISE DOXYGEN WOULD NOT PARSE THE FILES BLOCKED)
7 MESSAGE(STATUS "* Added definition -D${DEF}")
8 ADD_DEFINITIONS( -D${DEF} )
10 ${CREA_DEFINITIONS};${DEF}
15 MARK_AS_ADVANCED(CREA_DEFINITIONS)
17 #-----------------------------------------------------------------------------
19 #-----------------------------------------------------------------------------
20 # MACRO TO ADD A COMPILER DEFINITION WITH VALUE WHICH ADDS ALSO THE DEF
21 # INTO DOXYGEN PREDEFINED VAR
22 # (OTHERWISE DOXYGEN WOULD NOT PARSE THE FILES BLOCKED)
23 MACRO(CREA_DEFINE_WITH_VAL DEF VAL)
24 MESSAGE(STATUS "* Added definition -D${DEF}=${VAL}")
25 ADD_DEFINITIONS( -D${DEF}=${VAL} )
27 ${CREA_DEFINITIONS};${DEF}=${VAL}
32 MARK_AS_ADVANCED(CREA_DEFINITIONS)
33 ENDMACRO(CREA_DEFINE_WITH_VAL)
34 #-----------------------------------------------------------------------------
36 #-----------------------------------------------------------------------------
37 MACRO(CREA_DEFINE_OPERATING_SYSTEM )
41 IF("${CMAKE_SYSTEM}" MATCHES "Linux")
43 ELSE("${CMAKE_SYSTEM}" MATCHES "Linux")
47 MESSAGE(FATAL_ERROR "${CMAKE_SYSTEM} unsupported ! Build at your own risks ! (remove this line from kernel/cmake/BBTKAddDefinitions.cmake)")
49 ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
54 SET(CMAKE_CREA_LIB_PATH bin)
58 if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
60 SET(CMAKE_CREA_LIB_PATH lib/creatools)
61 else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
63 SET(CMAKE_CREA_LIB_PATH lib64/creatools)
64 endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
66 SET(CMAKE_CREA_LIB_PATH lib/creatools)
68 if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
69 message("EED crea definitions --------APPLE------------ 64 0")
70 else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
71 message("EED crea definitions --------APPLE------------ 64 1")
72 endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
79 ENDMACRO(CREA_DEFINE_OPERATING_SYSTEM)
80 #-----------------------------------------------------------------------------