mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move run on build dir code out of the main cmake
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
cc6875d39e
commit
30999a6898
2 changed files with 30 additions and 30 deletions
29
cmake/Modules/RunOnBuildDir.cmake
Normal file
29
cmake/Modules/RunOnBuildDir.cmake
Normal file
|
@ -0,0 +1,29 @@
|
|||
# install a few things so that one can run Subsurface from the build
|
||||
# directory
|
||||
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}/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
|
||||
)
|
||||
add_custom_target(
|
||||
documentation ALL
|
||||
COMMAND
|
||||
${CMAKE_MAKE_PROGRAM} -C ${CMAKE_SOURCE_DIR}/Documentation OUT=${CMAKE_BINARY_DIR}/Documentation/ doc
|
||||
DEPENDS documentationLink
|
||||
)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue