-# 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
${PTHREAD_LIBRARIES}
YACSlibEngine
YACSBases
+ SALOMEBasics
)
# additional preprocessor / compiler flags
${OMNIORB_DEFINITIONS}
)
-IF(WIN32)
- ADD_DEFINITIONS(-DNOGDI)
-ENDIF(WIN32)
-
# --- sources ---
SET(PluginOptEvTest1_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})
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)