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} )
9 SET(DOXYGEN_DOC_PREDEFINED
10 ${DOXYGEN_DOC_PREDEFINED};${DEF}
15 MARK_AS_ADVANCED(DOXYGEN_DOC_PREDEFINED)
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(ADD_DEF_WITH_VAL DEF VAL)
24 MESSAGE(STATUS "* Added definition -D${DEF}=${VAL}")
25 ADD_DEFINITIONS( -D${DEF}=${VAL} )
26 SET(DOXYGEN_DOC_PREDEFINED
27 ${DOXYGEN_DOC_PREDEFINED};${DEF}=${VAL}
32 MARK_AS_ADVANCED(DOXYGEN_DOC_PREDEFINED)
33 ENDMACRO(ADD_DEF_WITH_VAL)
34 #-----------------------------------------------------------------------------
37 #========================================================================
38 # MACRO WHICH COPIES ALL IMAGES (png, jpg, gif)
39 # FROM SOURCE TREE TO DOC BUILD TREE
40 # AND INSTALL THEM IN BBTK DOC TREE
41 MACRO(BBTK_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH)
42 FILE(GLOB PNG_IMAGES "*.png")
43 FILE(GLOB JPG_IMAGES "*.jpg")
44 FILE(GLOB TIF_IMAGES "*.tif")
50 # MESSAGE(ERROR ${IMAGES})
51 FOREACH(image ${IMAGES})
52 GET_FILENAME_COMPONENT(filename "${image}" NAME)
55 ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}
61 # ${CMAKE_CURRENT_BINARY_DIR}/${filename}
65 # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}")
69 DESTINATION ${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}
71 ENDMACRO(BBTK_DOC_INSTALL_IMAGES)
72 #========================================================================