From 38ba7177c772e2ee55396968833f9427c1a6bffc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 24 Apr 2015 11:02:45 -0700 Subject: [PATCH] cmake: copy images / icons into the build Documentation folder Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc7250136..39d09a5b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -377,7 +377,12 @@ if(NOT NO_TESTS) endif() if(NOT NO_DOCS) - add_custom_target(documentation ALL mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ \\; make -C ${CMAKE_SOURCE_DIR}/Documentation OUT=${CMAKE_BINARY_DIR}/Documentation/ doc) + add_custom_target( + documentation ALL + mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ \\; + cp -a ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/ \\; + make -C ${CMAKE_SOURCE_DIR}/Documentation OUT=${CMAKE_BINARY_DIR}/Documentation/ doc + ) endif() # install Subsurface