diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-11-17 19:25:20 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-16 08:00:31 -0800 |
commit | 4ae0ce0c608e57150905cfc72737cfe1e6581c2e (patch) | |
tree | 870a8e9ff81048a5491b2c261743b18ec58f033d /CMakeLists.txt | |
parent | b33059e08b58f6eef6f581c87fccd858e3231283 (diff) | |
download | subsurface-4ae0ce0c608e57150905cfc72737cfe1e6581c2e.tar.gz |
Code Cleanup
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c825e50b..d47a1d502 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,27 +294,27 @@ target_link_libraries(export-html subsurface_corelib ${SUBSURFACE_LINK_LIBRARIES # install a few things so that one can run Subsurface from the build # directory - add_custom_target(themeLink ALL +add_custom_target(themeLink ALL + COMMAND + rm -f ${CMAKE_BINARY_DIR}/theme && + ln -s ${CMAKE_SOURCE_DIR}/theme ${CMAKE_BINARY_DIR}/theme +) +if(NOT NO_PRINTING) + add_custom_target(printing_templatesLink ALL COMMAND - rm -f ${CMAKE_BINARY_DIR}/theme && - ln -s ${CMAKE_SOURCE_DIR}/theme ${CMAKE_BINARY_DIR}/theme + rm -f ${CMAKE_BINARY_DIR}/printing_templates && + ln -s ${CMAKE_SOURCE_DIR}/printing_templates ${CMAKE_BINARY_DIR}/printing_templates ) - if(NOT NO_PRINTING) - add_custom_target(printing_templatesLink ALL - COMMAND - rm -f ${CMAKE_BINARY_DIR}/printing_templates && - ln -s ${CMAKE_SOURCE_DIR}/printing_templates ${CMAKE_BINARY_DIR}/printing_templates - ) - endif() - if(NOT NO_DOCS) - add_custom_target( - documentationLink ALL - COMMAND - mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ && - rm -rf ${CMAKE_BINARY_DIR}/Documentation/images && - ln -s ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/images - ) - endif() +endif() +if(NOT NO_DOCS) + add_custom_target( + documentationLink ALL + COMMAND + mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ && + rm -rf ${CMAKE_BINARY_DIR}/Documentation/images && + ln -s ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/images + ) +endif() if(NOT NO_DOCS) add_custom_target( documentation ALL |