forked from qt-creator/qt-creator
CMake build: Copy fonts and syntax-highlighting files to builddir
Fixes: QTCREATORBUG-22472 Change-Id: Ib812690c70efdc0ad7b125f6ce9623ca500d698d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
0b2b21bb22
commit
f2ce80e0c6
@@ -33,6 +33,15 @@ add_qtc_library(KSyntaxHighlighting STATIC
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY data/
|
||||
DIRECTORY data/syntax
|
||||
DESTINATION "${IDE_DATA_PATH}/generic-highlighter/"
|
||||
)
|
||||
|
||||
add_custom_target(copy_generic_highligher_to_builddir ALL VERBATIM)
|
||||
add_custom_command(TARGET copy_generic_highligher_to_builddir POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory data/syntax
|
||||
"${PROJECT_BINARY_DIR}/${IDE_DATA_PATH}/generic-highlighter/syntax"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMENT Copy files into build directory
|
||||
VERBATIM
|
||||
)
|
||||
|
9
src/share/3rdparty/CMakeLists.txt
vendored
9
src/share/3rdparty/CMakeLists.txt
vendored
@@ -2,3 +2,12 @@ install(
|
||||
DIRECTORY fonts
|
||||
DESTINATION "${IDE_DATA_PATH}"
|
||||
)
|
||||
|
||||
add_custom_target(copy_fonts_to_builddir ALL VERBATIM)
|
||||
add_custom_command(TARGET copy_fonts_to_builddir POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory fonts
|
||||
"${PROJECT_BINARY_DIR}/${IDE_DATA_PATH}/fonts"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMENT Copy files into build directory
|
||||
VERBATIM
|
||||
)
|
||||
|
Reference in New Issue
Block a user