]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Replace deprecated SWIG_ADD_MODULE with SWIG_ADD_LIBRARY.
authormzn <mzn@opencascade.com>
Mon, 20 Aug 2018 11:16:27 +0000 (14:16 +0300)
committermzn <mzn@opencascade.com>
Mon, 20 Aug 2018 11:16:27 +0000 (14:16 +0300)
19 files changed:
src/BuildAPI/CMakeLists.txt
src/CollectionAPI/CMakeLists.txt
src/Config/CMakeLists.txt
src/ConnectorAPI/CMakeLists.txt
src/ConstructionAPI/CMakeLists.txt
src/Events/CMakeLists.txt
src/ExchangeAPI/CMakeLists.txt
src/FeaturesAPI/CMakeLists.txt
src/GDMLAPI/CMakeLists.txt
src/GeomAPI/CMakeLists.txt
src/GeomAlgoAPI/CMakeLists.txt
src/GeomDataAPI/CMakeLists.txt
src/ModelAPI/CMakeLists.txt
src/ModelGeomAlgo/CMakeLists.txt
src/ModelHighAPI/CMakeLists.txt
src/ParametersAPI/CMakeLists.txt
src/PartSetAPI/CMakeLists.txt
src/PrimitivesAPI/CMakeLists.txt
src/SketchAPI/CMakeLists.txt

index 0cc22fed3b4d1941596576c20e8d785cc1882f92..a88ab8eb6aef60d33b35375bffe59728f97f81a6 100644 (file)
@@ -96,7 +96,7 @@ SET(SWIG_MODULE_BuildAPI_EXTRA_DEPS ${SWIG_MODULE_BuildAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(BuildAPI python BuildAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(BuildAPI LANGUAGE python SOURCES BuildAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(BuildAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 935c38bfbbfaba45198f0dbf7a1d7bb0ce3a2d8a..88990237fbfe15472f21bb21b7d3a23286a66fd0 100644 (file)
@@ -74,7 +74,7 @@ SET(SWIG_MODULE_CollectionAPI_EXTRA_DEPS ${SWIG_MODULE_CollectionAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(CollectionAPI python CollectionAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(CollectionAPI LANGUAGE python SOURCES CollectionAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(CollectionAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index e120e21b8a9fb69a62d309835331b1408dc0f4aa..068609e63b77160927e62c8ed0281f6fc5b02803 100644 (file)
@@ -76,7 +76,7 @@ SET(SWIG_LINK_LIBRARIES
   Config
   ${PYTHON_LIBRARIES}
 )
-SWIG_ADD_MODULE(ConfigAPI python ConfigAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ConfigAPI LANGUAGE python SOURCES ConfigAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ConfigAPI ${SWIG_LINK_LIBRARIES})
 IF(WIN32)
   SET_TARGET_PROPERTIES(_ConfigAPI PROPERTIES DEBUG_OUTPUT_NAME _ConfigAPI_d)
index 99f15351a6a1cf4bd93b4e31f59562950f0a4c4e..291700cef497b5e10a81f192134c8ee2a9eb4543 100644 (file)
@@ -75,7 +75,7 @@ SET(SWIG_MODULE_ConnectorAPI_EXTRA_DEPS ${SWIG_MODULE_ConnectorAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(ConnectorAPI python ConnectorAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ConnectorAPI LANGUAGE python SOURCES ConnectorAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ConnectorAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 18830093d33a15b06644f82f5d45b7edf9ccda6a..985455f221f18ab3c92e3056b26fb6313f725c19 100644 (file)
@@ -79,7 +79,7 @@ SET(SWIG_MODULE_ConstructionAPI_EXTRA_DEPS ${SWIG_MODULE_ConstructionAPI_EXTRA_D
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(ConstructionAPI python ConstructionAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ConstructionAPI LANGUAGE python SOURCES ConstructionAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ConstructionAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 574e12f99143baf78b349b9fd145f403911c4cc5..f20acfdea97da8d06c4e0a3fbdc624b0930c257d 100644 (file)
@@ -64,7 +64,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(EventsAPI python Events.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(EventsAPI LANGUAGE python SOURCES Events.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(EventsAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 40e5d303adadd996b61b9396a9461afeff5ca62e..08c4e8cb1cd8432a7637fcb933cbf6c65d3f5459 100644 (file)
@@ -76,7 +76,7 @@ SET(SWIG_MODULE_ExchangeAPI_EXTRA_DEPS ${SWIG_MODULE_ExchangeAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(ExchangeAPI python ExchangeAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ExchangeAPI LANGUAGE python SOURCES ExchangeAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ExchangeAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index b511fc640dbfc008d3933856aa46ac03d8f16dfe..e44030e6476fb6fb9ff08a990984370d695b8e27 100644 (file)
@@ -118,7 +118,7 @@ SET(SWIG_MODULE_FeaturesAPI_EXTRA_DEPS ${SWIG_MODULE_FeaturesAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(FeaturesAPI python FeaturesAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(FeaturesAPI LANGUAGE python SOURCES FeaturesAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(FeaturesAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 6654525fa428de3ea445f9bb6f510c47111336d9..eea7900cb107120ebbac6c22f99249e4b6bbac16 100644 (file)
@@ -74,7 +74,7 @@ SET(SWIG_MODULE_GDMLAPI_EXTRA_DEPS ${SWIG_MODULE_GDMLAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(GDMLAPI python GDMLAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(GDMLAPI LANGUAGE python SOURCES GDMLAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(GDMLAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 01594414d72d757a34602d7ed554f58abf7c0976..f74506b6ca551fed9eb5392b9ea7d644a87a4058 100644 (file)
@@ -132,7 +132,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(GeomAPI python GeomAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(GeomAPI LANGUAGE python SOURCES GeomAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(GeomAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index f24b06d6964359864346f5aa3a0ae79d6984452b..97eb347d2aeb8d6137a3fee58691d9ba1694d6a7 100644 (file)
@@ -189,7 +189,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(GeomAlgoAPI LANGUAGE python SOURCES GeomAlgoAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 90e0654b5f40b3bb7cac8f4d64788f64e48ae2c1..d975ae0b04b86763a49228958652bc6359bff5b4 100644 (file)
@@ -64,7 +64,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(GeomDataAPI LANGUAGE python SOURCES GeomDataAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index fbcb4a777d82158507d8a7c255f368f86522c4ae..f10b3bf678402a47b1850ba91ae123bf07c9761e 100644 (file)
@@ -146,7 +146,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(ModelAPI python ModelAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ModelAPI LANGUAGE python SOURCES ModelAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ModelAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index b6cdf135b8b73a87539117f69d5f0a742b93caa8..bc994a02eb0c795ad5dc83107218e174554081b0 100755 (executable)
@@ -74,7 +74,7 @@ SET(SWIG_LINK_LIBRARIES
   ${PYTHON_LIBRARIES}
 )
 
-SWIG_ADD_MODULE(ModelGeomAlgo python ModelGeomAlgo.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ModelGeomAlgo LANGUAGE python SOURCES ModelGeomAlgo.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ModelGeomAlgo ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 9c0ce38a1b51096d12a57f5a43e7d56bc48da4a6..0bc3eb013f6a343dcdc4db05a47abf2692ff84d6 100644 (file)
@@ -93,7 +93,7 @@ set(SWIG_MODULE_ModelHighAPI_EXTRA_DEPS
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(ModelHighAPI python ModelHighAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ModelHighAPI LANGUAGE python SOURCES ModelHighAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ModelHighAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index bad153b70c36496ead630708bbfb47a66c51da8f..926344bd54eeb6b1cc85a8b1e828b78effabf659 100644 (file)
@@ -75,7 +75,7 @@ SET(SWIG_MODULE_ParametersAPI_EXTRA_DEPS ${SWIG_MODULE_ParametersAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(ParametersAPI python ParametersAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(ParametersAPI LANGUAGE python SOURCES ParametersAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(ParametersAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 265571df56b9c96bdcc3b9331745534956e7a263..6747370c774c5dbe865b75f9f17bad9336c3b098 100644 (file)
@@ -76,7 +76,7 @@ SET(SWIG_MODULE_PartSetAPI_EXTRA_DEPS ${SWIG_MODULE_PartSetAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(PartSetAPI python PartSetAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(PartSetAPI LANGUAGE python SOURCES PartSetAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(PartSetAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index 82f6558b0d7f939ef845ca4600c50ced6703c52d..b49f75384642745cbfaeeec4238c715bbfaeb4fc 100644 (file)
@@ -80,7 +80,7 @@ SET(SWIG_MODULE_PrimitivesAPI_EXTRA_DEPS ${SWIG_MODULE_PrimitivesAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(PrimitivesAPI python PrimitivesAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(PrimitivesAPI LANGUAGE python SOURCES PrimitivesAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(PrimitivesAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)
index c647ef0e6d70f0c740eefdf6d2bf459d72c7cc98..d7cc664ab0d65c5cf1dee4517e01d572e3c7b67e 100644 (file)
@@ -105,7 +105,7 @@ SET(SWIG_MODULE_SketchAPI_EXTRA_DEPS ${SWIG_MODULE_SketchAPI_EXTRA_DEPS}
   ${PROJECT_HEADERS}
 )
 
-SWIG_ADD_MODULE(SketchAPI python SketchAPI.i ${PROJECT_HEADERS})
+SWIG_ADD_LIBRARY(SketchAPI LANGUAGE python SOURCES SketchAPI.i ${PROJECT_HEADERS})
 SWIG_LINK_LIBRARIES(SketchAPI ${SWIG_LINK_LIBRARIES})
 
 IF(WIN32)