소스 검색

Use configure_file instead of file(WRITE ...) to avoid regeneration.

Sascha Zelzer 14 년 전
부모
커밋
5c36963bee
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      CMake/ctkMacroGeneratePluginResourceFile.cmake
  2. 2 0
      CMake/plugin_resources_cached.qrc.in

+ 1 - 1
CMake/ctkMacroGeneratePluginResourceFile.cmake

@@ -37,7 +37,7 @@ MACRO(ctkMacroGeneratePluginResourceFile QRC_SRCS)
   SET(_qrc_content "${_qrc_content}</qresource>
 </RCC>
 ")
-  FILE(WRITE "${_qrc_filepath}" "${_qrc_content}")
+  CONFIGURE_FILE("${CTK_CMAKE_DIR}/plugin_resources_cached.qrc.in" "${_qrc_filepath}" @ONLY)
 
   QT4_ADD_RESOURCES(${QRC_SRCS} ${_qrc_filepath})
 

+ 2 - 0
CMake/plugin_resources_cached.qrc.in

@@ -0,0 +1,2 @@
+@_qrc_content@
+