Просмотр исходного кода

Fix unnecessary recompile of some Qt files after configure.

Marco Nolden лет назад: 14
Родитель
Сommit
34c898d2a7

+ 2 - 0
CMake/MANIFEST.MF.in

@@ -0,0 +1,2 @@
+@_manifest_content@
+

+ 2 - 2
CMake/ctkFunctionGeneratePluginManifest.cmake

@@ -93,8 +93,8 @@ FUNCTION(ctkFunctionGeneratePluginManifest QRC_SRCS)
 </RCC>
 ")
 
-  FILE(WRITE "${_manifest_filepath}" "${_manifest_content}")
-  FILE(WRITE "${_manifest_qrc_filepath}" "${_manifest_qrc_content}")
+  CONFIGURE_FILE("${CTK_SOURCE_DIR}/CMake/MANIFEST.MF.in" "${_manifest_filepath}" @ONLY)
+  CONFIGURE_FILE("${CTK_SOURCE_DIR}/CMake/plugin_manifest.qrc.in" "${_manifest_qrc_filepath}" @ONLY)
 
   QT4_ADD_RESOURCES(_qrc_src ${_manifest_qrc_filepath})
 

+ 2 - 0
CMake/plugin_manifest.qrc.in

@@ -0,0 +1,2 @@
+@_manifest_qrc_content@
+