1 #========================================================================
2 # MACRO WHICH COPIES ALL IMAGES (png, jpg, gif)
3 # FROM SOURCE TREE TO DOC BUILD TREE
4 # AND INSTALL THEM IN BBTK DOC TREE
5 MACRO(USER_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH)
6 MESSAGE(STATUS "* Copying png,jpg,tif images in ${BBTK_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}")
7 FILE(GLOB PNG_IMAGES "*.png")
8 FILE(GLOB JPG_IMAGES "*.jpg")
9 FILE(GLOB TIF_IMAGES "*.tif")
15 # MESSAGE(ERROR ${IMAGES} )
16 FOREACH(image ${IMAGES})
17 GET_FILENAME_COMPONENT(filename "${image}" NAME)
20 ${${PROJECT_NAME}_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}
27 # ${CMAKE_CURRENT_BINARY_DIR}/${filename}
31 # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}")
35 DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}
37 ENDMACRO(USER_DOC_INSTALL_IMAGES)