Salome HOME
updated copyright message
[modules/yacs.git] / src / yacsloader / CMakeLists.txt
index 3057cd9e852e736e8b00839a6769675418b07ec4..6d143f7bb203d96164ccdc0e38b3454c93a424ca 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2023  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
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -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
@@ -66,9 +66,6 @@ ADD_DEFINITIONS(
   ${PYTHON_DEFINITIONS}
   ${OMNIORB_DEFINITIONS}
   )
-IF(WIN32)
-  ADD_DEFINITIONS(-DNOGDI)
-ENDIF(WIN32)
 SET(_exec_DEFINITIONS
   -g
   )
@@ -76,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
@@ -149,6 +147,9 @@ SET(resume_SOURCES
 SET(debugger_SOURCES
   debugger.cxx
   )
+SET(ExampleOfObserversPluginForDriver_SOURCES
+  ExampleOfObserversPluginForDriver.cxx
+  )
 
 # --- rules ---
 
@@ -156,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})