diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-19 21:33:29 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-19 21:33:29 -0700 |
commit | 7e216bcb0c31df1a1af015e7f8b620117829b64a (patch) | |
tree | 483b444cab9276ba7aad012110b2119e8fc1f6cf /CMakeLists.txt | |
parent | 56d701dfff72bb4e59f23432c5b7d9c356132412 (diff) | |
download | subsurface-7e216bcb0c31df1a1af015e7f8b620117829b64a.tar.gz |
Allow printing and HTML export to work when running from build directory
Yet more things that wouldn't work for a native build under Windows.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e31822e0d..5e2c7de8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -465,6 +465,12 @@ if(NOT NO_TESTS) TEST(TestParse testparse.cpp) endif() +# install a few things so that one can run Subsurface from the build +# directory +add_custom_target(createLinks 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_templates 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( documentation ALL |