1 # Copyright (C) 2012-2016 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
20 IF(SALOME_BUILD_TESTS)
21 ADD_SUBDIRECTORY(Test)
22 ADD_SUBDIRECTORY(pmml)
23 ENDIF(SALOME_BUILD_TESTS)
27 IF(SALOME_YACS_USE_KERNEL)
28 INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
29 ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
32 ${KERNEL_SalomeLifeCycleCORBA}
33 ${KERNEL_SalomeIDLKernel}
35 ${KERNEL_SalomeContainer}
36 ${KERNEL_SALOMEBasics}
37 ${KERNEL_SalomeResourcesManager}
39 ${KERNEL_SALOMELocalTrace}
41 ${KERNEL_SalomeNotification}
42 ${KERNEL_ResourcesManager}
43 ${KERNEL_SalomeHDFPersist}
44 ${KERNEL_SalomeGenericObj}
46 IF(SALOME_YACS_USE_DSC)
47 LIST(APPEND SALOME_LIBS ${KERNEL_SalomeDSCContainer})
48 ENDIF(SALOME_YACS_USE_DSC)
49 ENDIF(SALOME_YACS_USE_KERNEL)
51 # additional include directories
53 ${OMNIORB_INCLUDE_DIR}
55 ${PROJECT_SOURCE_DIR}/src/bases
56 ${PROJECT_SOURCE_DIR}/src/engine
57 ${PROJECT_SOURCE_DIR}/src/runtime
58 ${PROJECT_SOURCE_DIR}/src/yacsloader
62 # additional preprocessor / compiler flags
65 ${OMNIORB_DEFINITIONS}
71 # libraries to link to
72 SET(YACSloader_LIBRARIES
89 SET(YACSloader_HEADERS
111 componentinstanceParsers.hxx
123 SET(YACSloader_SOURCES
136 componentinstanceParsers.cxx
150 ADD_LIBRARY(YACSloader ${YACSloader_SOURCES})
151 TARGET_LINK_LIBRARIES(YACSloader ${YACSloader_LIBRARIES})
152 INSTALL(TARGETS YACSloader EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
154 ADD_EXECUTABLE(driver ${driver_SOURCES})
155 TARGET_LINK_LIBRARIES(driver ${_link_LIBRARIES})
157 ADD_EXECUTABLE(resume ${resume_SOURCES})
158 TARGET_LINK_LIBRARIES(resume ${_link_LIBRARIES})
160 ADD_EXECUTABLE(debugger ${debugger_SOURCES})
161 TARGET_LINK_LIBRARIES(debugger ${_link_LIBRARIES})
163 SET_TARGET_PROPERTIES(driver resume debugger PROPERTIES COMPILE_FLAGS ${_exec_DEFINITIONS})
165 INSTALL(TARGETS driver resume debugger EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
167 INSTALL(FILES ${YACSloader_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
169 FILE(GLOB sample_files
170 ${PROJECT_SOURCE_DIR}/src/yacsloader/samples/*.xml
171 ${PROJECT_SOURCE_DIR}/src/yacsloader/samples/*.pmml
172 ${PROJECT_SOURCE_DIR}/src/yacsloader/samples/*.data)
173 INSTALL(FILES ${sample_files} DESTINATION ${SALOME_YACS_INSTALL_SAMPLES})