mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
56d701dfff
commit
7e216bcb0c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue