1 # Copyright (C) 2012-2014 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # additional include directories
26 ${CPPUNIT_INCLUDE_DIRS}
28 ${OMNIORB_INCLUDE_DIR}
29 ${KERNEL_INCLUDE_DIRS}
30 ${CMAKE_CURRENT_SOURCE_DIR}/..
31 ${CMAKE_CURRENT_SOURCE_DIR}/../../bases
32 ${CMAKE_CURRENT_SOURCE_DIR}/../../bases/Test
33 ${CMAKE_CURRENT_SOURCE_DIR}/../../engine
34 ${CMAKE_CURRENT_SOURCE_DIR}/../../engine/Test
35 ${CMAKE_CURRENT_SOURCE_DIR}
36 ${CMAKE_CURRENT_BINARY_DIR}
39 # additional preprocessor / compiler flags
41 ${PTHREAD_DEFINITIONS}
42 ${OMNIORB_DEFINITIONS}
57 ${KERNEL_ROOT_DIR}/idl/salome
58 ${CMAKE_CURRENT_SOURCE_DIR}
59 ${CMAKE_CURRENT_BINARY_DIR}
62 ${KERNEL_SalomeIDLKernel}
67 SET(TestRuntime_SOURCES
71 SET(TestRuntime_LIBRARIES
80 SET(runtimeTestEchoSrv_SOURCES
88 SET(TestComponentLocal_SOURCES
94 OMNIORB_ADD_MODULE(runtime_echo "${echo_IDL_FILES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_FLAGS}")
96 ADD_EXECUTABLE(TestRuntime ${TestRuntime_SOURCES})
97 TARGET_LINK_LIBRARIES(TestRuntime ${TestRuntime_LIBRARIES})
99 ADD_EXECUTABLE(runtimeTestEchoSrv ${runtimeTestEchoSrv_SOURCES})
100 TARGET_LINK_LIBRARIES(runtimeTestEchoSrv runtime_echo ${OMNIORB_LIBRARIES})
102 ADD_EXECUTABLE(echo_clt ${echo_clt_SOURCES})
103 TARGET_LINK_LIBRARIES(echo_clt runtime_echo ${OMNIORB_LIBRARIES})
105 ADD_LIBRARY(TestComponentLocal ${TestComponentLocal_SOURCES})
106 TARGET_LINK_LIBRARIES(TestComponentLocal YACSlibEngine)
107 INSTALL(TARGETS TestComponentLocal EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
109 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
113 SALOME_CONFIGURE_FILE(xmlrun_orig.sh xmlrun.sh)
114 ADD_TEST(NAME runtimeTest COMMAND ${SHELL} ${CMAKE_CURRENT_SOURCE_DIR}/runtimeTest.sh)
115 SET_TESTS_PROPERTIES(runtimeTest PROPERTIES ENVIRONMENT "${tests_env}")