From: Kornel Benko Date: Sun, 21 Oct 2012 17:16:37 +0000 (+0200) Subject: Cmake build: X-Git-Tag: 2.1.0beta1~1359 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e94e9e415f4a6ea074ea8ee34deee57b2b5d4d17;p=features.git Cmake build: Recreate Resources.qrc at build-time if needed. (E.g. after `make clean') --- diff --git a/development/cmake/modules/LyXMacros.cmake b/development/cmake/modules/LyXMacros.cmake index 6514eb2eb8..a137dc3ebc 100644 --- a/development/cmake/modules/LyXMacros.cmake +++ b/development/cmake/modules/LyXMacros.cmake @@ -229,6 +229,11 @@ macro(lyx_qt_resources_file _qrc_name _to_dir _list) file(APPEND ${_qrc_name} "\n") file(APPEND ${_qrc_name} "\n") endif() + add_custom_command( + OUTPUT ${_qrc_name} + COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target rebuild_cache + ) + endmacro(lyx_qt_resources_file)