]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/Test/CMakeLists.txt
Salome HOME
updated copyright message
[modules/yacs.git] / src / engine / Test / CMakeLists.txt
index 14562be0003496d483e70ab0c361f9491fff66fe..d1633efb996fd97b121e3bccf586a8f258e2c9da 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2014  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -33,6 +33,7 @@ SET(_link_LIBRARIES
   ${PTHREAD_LIBRARIES}
   YACSlibEngine 
   YACSBases
+  SALOMEBasics
 )
 
 # additional preprocessor / compiler flags
@@ -40,10 +41,6 @@ ADD_DEFINITIONS(
   ${OMNIORB_DEFINITIONS}
 )
 
-IF(WIN32)
-  ADD_DEFINITIONS(-DNOGDI)
-ENDIF(WIN32)
-
 # --- sources ---
 
 SET(PluginOptEvTest1_SOURCES
@@ -66,10 +63,15 @@ SET(IntegrationTestEngine_SOURCES
 )
 
 # --- rules ---
-
+if(WIN32)
+  add_library(PluginOptEvTest1_lib STATIC  ${PluginOptEvTest1_SOURCES})
+  TARGET_LINK_LIBRARIES(PluginOptEvTest1_lib ${_link_LIBRARIES})
+  set_target_properties(PluginOptEvTest1_lib PROPERTIES OUTPUT_NAME PluginOptEvTest1)
+endif(WIN32)
 ADD_LIBRARY(PluginOptEvTest1 ${PluginOptEvTest1_SOURCES})
 TARGET_LINK_LIBRARIES(PluginOptEvTest1 YACSlibEngine)
-INSTALL(TARGETS PluginOptEvTest1 EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS PluginOptEvTest1 EXPORT ${PROJECT_NAME}TargetGroup
+        DESTINATION ${SALOME_YACS_INSTALL_TEST_LIB})
 
 ADD_EXECUTABLE(TestEngine ${TestEngine_SOURCES})
 TARGET_LINK_LIBRARIES(TestEngine ${_link_LIBRARIES})
@@ -79,4 +81,12 @@ ADD_EXECUTABLE(IntegrationTestEngine ${IntegrationTestEngine_SOURCES})
 TARGET_LINK_LIBRARIES(IntegrationTestEngine ${_link_LIBRARIES})
 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 ADD_TEST(IntegrationTestEngine IntegrationTestEngine)
-SET_TESTS_PROPERTIES(IntegrationTestEngine PROPERTIES ENVIRONMENT "${tests_env}")
\ No newline at end of file
+SET_TESTS_PROPERTIES(IntegrationTestEngine PROPERTIES ENVIRONMENT "${tests_env}")
+
+# For salome test
+SET(LOCAL_TEST_DIR ${SALOME_YACS_INSTALL_TEST}/engine)
+INSTALL(TARGETS TestEngine DESTINATION ${LOCAL_TEST_DIR})
+INSTALL(TARGETS IntegrationTestEngine DESTINATION ${LOCAL_TEST_DIR})
+INSTALL(FILES CTestTestfileInstall.cmake
+        DESTINATION ${LOCAL_TEST_DIR}
+        RENAME CTestTestfile.cmake)