From 9bd9330285a6464f99799e33b56f42994b424f39 Mon Sep 17 00:00:00 2001 From: Juan Prieto Date: Tue, 2 Jun 2009 14:15:36 +0000 Subject: [PATCH] *** empty log message *** --- .../NewProject/cmake/UserMacros.cmake | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 appli/creaNewProject/NewProject/cmake/UserMacros.cmake diff --git a/appli/creaNewProject/NewProject/cmake/UserMacros.cmake b/appli/creaNewProject/NewProject/cmake/UserMacros.cmake new file mode 100644 index 0000000..08e0c2f --- /dev/null +++ b/appli/creaNewProject/NewProject/cmake/UserMacros.cmake @@ -0,0 +1,37 @@ +#======================================================================== +# MACRO WHICH COPIES ALL IMAGES (png, jpg, gif) +# FROM SOURCE TREE TO DOC BUILD TREE +# AND INSTALL THEM IN BBTK DOC TREE +MACRO(USER_DOC_INSTALL_IMAGES DOC_RELATIVE_INSTALL_PATH) + MESSAGE(STATUS "* Copying png,jpg,tif images in ${${PROJECT_NAME}_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}") + FILE(GLOB PNG_IMAGES "*.png") + FILE(GLOB JPG_IMAGES "*.jpg") + FILE(GLOB TIF_IMAGES "*.tif") + SET(IMAGES + ${PNG_IMAGES} + ${JPG_IMAGES} + ${TIF_IMAGES} + ) +# MESSAGE(ERROR ${IMAGES} ) + FOREACH(image ${IMAGES}) + GET_FILENAME_COMPONENT(filename "${image}" NAME) + CONFIGURE_FILE( + ${image} + ${${PROJECT_NAME}_DOC_BUILD_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename} + COPYONLY + ) + + # IF (WIN32) +# CONFIGURE_FILE( +# ${image} +# ${CMAKE_CURRENT_BINARY_DIR}/${filename} +# COPYONLY +# ) +# ENDIF(WIN32) + # MESSAGE(ERROR "${image} (${filename}) in : ${PROJECT_BINARY_DIR}/${BBTK_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH}/${filename}") + ENDFOREACH(image) + INSTALL( + FILES ${IMAGES} + DESTINATION ${${PROJECT_NAME}_DOC_INSTALL_PATH}/${DOC_RELATIVE_INSTALL_PATH} + ) +ENDMACRO(USER_DOC_INSTALL_IMAGES) \ No newline at end of file -- 2.47.1