]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction of CMake files for correct management of translation files.
authormpv <mpv@opencascade.com>
Fri, 24 Jun 2016 18:01:36 +0000 (21:01 +0300)
committermpv <mpv@opencascade.com>
Fri, 24 Jun 2016 18:01:36 +0000 (21:01 +0300)
src/BuildPlugin/CMakeLists.txt
src/ConstructionPlugin/CMakeLists.txt
src/ExchangePlugin/CMakeLists.txt
src/FeaturesPlugin/CMakeLists.txt

index ad77b74a95575ff65f8f78c03d32388ff1c92c9e..0fef6b358143deb1640b82939c4dd54e613c774f 100644 (file)
@@ -44,6 +44,12 @@ SET(XML_RESOURCES
     subshapes_widget.xml
 )
 
+SET(TEXT_RESOURCES
+    BuildPlugin_msg_en.ts
+)
+
+SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
+
 SET(PROJECT_LIBRARIES
     Events
     Config
@@ -54,12 +60,12 @@ SET(PROJECT_LIBRARIES
 )
 
 ADD_DEFINITIONS(-DBUILDPLUGIN_EXPORTS)
-ADD_LIBRARY(BuildPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
+ADD_LIBRARY(BuildPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
 
 TARGET_LINK_LIBRARIES(BuildPlugin ${PROJECT_LIBRARIES})
 
 INSTALL(TARGETS BuildPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
-INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Build)
 
 ADD_UNIT_TESTS(TestVertex.py
index 3b149668a31bafb6644935b7d8a158653a4c1af0..5fd66b7b8311b65a473ac87317b31fe5058529d6 100644 (file)
@@ -25,6 +25,10 @@ SET(XML_RESOURCES
   plane_widget.xml
 )
 
+SET(TEXT_RESOURCES
+  ConstructionPlugin_msg_en.ts
+)
+
 SET(PROJECT_LIBRARIES
     Config
     ModelAPI
@@ -32,12 +36,14 @@ SET(PROJECT_LIBRARIES
     GeomAlgoAPI
 )
 
+SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
+
 ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
-ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
+ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
 
 INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
-INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
 
 INCLUDE_DIRECTORIES(
index b1c58c67604ce1b652b56faa99af616f0e53817d..0745869cee2134e6065c4f6cfe9f15a32a21f6ff 100644 (file)
@@ -34,7 +34,7 @@ SET(XML_RESOURCES
 )
 
 SET(TEXT_RESOURCES
-       ExchangePlugin_msg_en.ts
+    ExchangePlugin_msg_en.ts
 )
 
 SET(PROJECT_LIBRARIES
index da400c140d5981a1c5916b1b89cf4afe62c87c15..451b9c0022d65ea1513c1971f1c4c8f7033ea651 100644 (file)
@@ -77,7 +77,7 @@ SET(XML_RESOURCES
 )
 
 SET(TEXT_RESOURCES
-       FeaturesPlugin_msg_en.ts
+    FeaturesPlugin_msg_en.ts
 )
 
 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})