瀏覽代碼

Fix unnecessary recompile of some Qt files after configure.

Marco Nolden 14 年之前
父節點
當前提交
34c898d2a7
共有 3 個文件被更改,包括 6 次插入2 次删除
  1. 2 0
      CMake/MANIFEST.MF.in
  2. 2 2
      CMake/ctkFunctionGeneratePluginManifest.cmake
  3. 2 0
      CMake/plugin_manifest.qrc.in

+ 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@
+