Salome HOME
bos #26594 Failed KERNEL test: fix typemap for swig 4x
[modules/yacs.git] / src / yacsloader / CMakeLists.txt
index 10c37ba19b3895b182406d57f710354ba3413c40..cee1b9e6c6d94d25c9da69ff8f2f9a8d9a0ba92c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2014  CEA/DEN, EDF R&D
+# Copyright (C) 2012-2021  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
@@ -19,7 +19,7 @@
 
 IF(SALOME_BUILD_TESTS)
   ADD_SUBDIRECTORY(Test)
-  ADD_SUBDIRECTORY(pmml)
+  ADD_SUBDIRECTORY(pmml)  
 ENDIF(SALOME_BUILD_TESTS)
 
 # --- options ---
@@ -29,7 +29,6 @@ IF(SALOME_YACS_USE_KERNEL)
   ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
 
   SET(SALOME_LIBS 
-    ${KERNEL_DEFINITIONS}
     ${KERNEL_SalomeLifeCycleCORBA}
     ${KERNEL_SalomeIDLKernel}
     ${KERNEL_SalomeNS}
@@ -52,8 +51,9 @@ ENDIF(SALOME_YACS_USE_KERNEL)
 # additional include directories
 INCLUDE_DIRECTORIES(
   ${OMNIORB_INCLUDE_DIR}
-  ${EXPAT_INCLUDE_DIR}
+  ${OMNIORBPY_INCLUDE_DIR}
   ${PYTHON_INCLUDE_DIR}
+  ${LIBXML2_INCLUDE_DIR}
   ${PROJECT_SOURCE_DIR}/src/bases
   ${PROJECT_SOURCE_DIR}/src/engine
   ${PROJECT_SOURCE_DIR}/src/runtime
@@ -73,8 +73,9 @@ SET(_exec_DEFINITIONS
 # libraries to link to
 SET(YACSloader_LIBRARIES
   ${OMNIORB_LIBRARIES}
-  ${EXPAT_LIBRARIES}
+  ${LIBXML2_LIBRARIES}
   YACSlibEngine
+  YACSRuntimeSALOME
   )
 SET(_link_LIBRARIES
   YACSloader
@@ -146,6 +147,9 @@ SET(resume_SOURCES
 SET(debugger_SOURCES
   debugger.cxx
   )
+SET(ExampleOfObserversPluginForDriver_SOURCES
+  ExampleOfObserversPluginForDriver.cxx
+  )
 
 # --- rules ---
 
@@ -153,6 +157,10 @@ ADD_LIBRARY(YACSloader ${YACSloader_SOURCES})
 TARGET_LINK_LIBRARIES(YACSloader ${YACSloader_LIBRARIES})
 INSTALL(TARGETS YACSloader EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
+ADD_LIBRARY(ExampleOfObserversPluginForDriver ${ExampleOfObserversPluginForDriver_SOURCES})
+TARGET_LINK_LIBRARIES(ExampleOfObserversPluginForDriver ${_link_LIBRARIES})
+INSTALL(TARGETS ExampleOfObserversPluginForDriver DESTINATION ${SALOME_INSTALL_LIBS})
+
 ADD_EXECUTABLE(driver ${driver_SOURCES})
 TARGET_LINK_LIBRARIES(driver ${_link_LIBRARIES})