diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-06-12 17:22:30 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-06-13 14:25:50 +0000 |
commit | f2ce80e0c69730a9e4bd7aa6cb366f5a75a615c6 (patch) | |
tree | 2d52ac86b33f2a278da6ff221dfe5ce87ababccd /src/libs/3rdparty/syntax-highlighting | |
parent | 0b2b21bb22549a21f83233a92ca0a7e7e415173c (diff) |
CMake build: Copy fonts and syntax-highlighting files to builddir
Fixes: QTCREATORBUG-22472
Change-Id: Ib812690c70efdc0ad7b125f6ce9623ca500d698d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting')
-rw-r--r-- | src/libs/3rdparty/syntax-highlighting/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt index e849815098..27cc408223 100644 --- a/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt +++ b/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt @@ -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 +) |