]> git.lyx.org Git - features.git/commitdiff
Cmake build:
authorKornel Benko <kornel@lyx.org>
Sun, 21 Oct 2012 17:16:37 +0000 (19:16 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 21 Oct 2012 17:16:37 +0000 (19:16 +0200)
Recreate Resources.qrc at build-time if needed. (E.g. after `make clean')

development/cmake/modules/LyXMacros.cmake

index 6514eb2eb885cc10cb798f778dd5365ccef24372..a137dc3ebcc14a8d3de44a54761f7928239b4daf 100644 (file)
@@ -229,6 +229,11 @@ macro(lyx_qt_resources_file _qrc_name _to_dir _list)
                file(APPEND  ${_qrc_name} "</qresource>\n")
                file(APPEND  ${_qrc_name} "</RCC>\n")
        endif()
+       add_custom_command(
+         OUTPUT ${_qrc_name}
+         COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target rebuild_cache
+         )
+
 endmacro(lyx_qt_resources_file)