Salome HOME
bos #33720: implement static libraries for windows. These changes are aimed to resol...
[modules/yacs.git] / src / bases / Test / CMakeLists.txt
index 45bb235f4af51928b0b485f8734ee0158caccefd..bfb4e46b0beacf0a1e73d2c7003aa8c1ca63afd9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2022  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -42,6 +42,12 @@ SET(TestBases_SOURCES
 
 # --- rules ---
 
+if(WIN32)
+  add_library(YACSDLTest_lib STATIC  ${YACSDLTest_SOURCES})
+  TARGET_LINK_LIBRARIES(YACSDLTest_lib ${_link_LIBRARIES})
+  set_target_properties(YACSDLTest_lib PROPERTIES OUTPUT_NAME YACSDLTest)
+endif(WIN32)
+
 ADD_LIBRARY(YACSDLTest ${YACSDLTest_SOURCES})
 INSTALL(TARGETS YACSDLTest EXPORT ${PROJECT_NAME}TargetGroup 
         DESTINATION ${SALOME_YACS_INSTALL_TEST_LIB})