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>
This commit is contained in:
Dirk Hohndel 2015-06-19 21:33:29 -07:00
parent 56d701dfff
commit 7e216bcb0c

View file

@ -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