Salome HOME
#29456 [EDF] (2022-T1) Finalization of SSL implementation
[modules/geom.git] / src / GEOM_I / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index d3ebabc..176e866
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # 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
 INCLUDE_DIRECTORIES(
   ${OMNIORB_INCLUDE_DIR}
   ${PTHREAD_INCLUDE_DIR}
-  ${CAS_INCLUDE_DIRS}
+  ${OpenCASCADE_INCLUDE_DIR}
   ${KERNEL_INCLUDE_DIRS}
   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
   ${PROJECT_SOURCE_DIR}/src/GEOM
   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
+  ${PROJECT_SOURCE_DIR}/src/GEOMUtils
+  ${PROJECT_SOURCE_DIR}/src/ShHealOper
   ${PROJECT_BINARY_DIR}/idl
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${PROJECT_BINARY_DIR}
@@ -35,41 +37,50 @@ INCLUDE_DIRECTORIES(
 
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(
-  ${CAS_DEFINITIONS}
+  ${OpenCASCADE_DEFINITIONS}
   ${OMNIORB_DEFINITIONS}
   )
 
+IF(WIN32)
+  ADD_DEFINITIONS(-DNOGDI)
+ENDIF(WIN32)
 
 # libraries to link to
 SET(_link_LIBRARIES
   GEOMImpl
+  GEOMUtils
   SalomeIDLGEOM
   ${KERNEL_SALOMELocalTrace}
   ${KERNEL_SalomeGenericObj}
   ${KERNEL_TOOLSDS}
   ${KERNEL_SalomeContainer}
   ${KERNEL_SalomeNS}
+  ${KERNEL_SalomeDS}
   )
 
 # --- headers ---
 
 SET(GEOMEngine_HEADERS
-  # GEOM_Object_i.hh
-  # GEOM_IOperations_i.hh
-  # GEOM_IBasicOperations_i.hh
-  # GEOM_IHealingOperations_i.hh
-  # GEOM_I3DPrimOperations_i.hh
-  # GEOM_IShapesOperations_i.hh
-  # GEOM_IBlocksOperations_i.hh
-  # GEOM_IBooleanOperations_i.hh
-  # GEOM_ICurvesOperations_i.hh
-  # GEOM_ILocalOperations_i.hh
-  # GEOM_IInsertOperations_i.hh
-  # GEOM_ITransformOperations_i.hh
-  # GEOM_IMeasureOperations_i.hh
-  # GEOM_IGroupOperations_i.hh
-  # GEOM_Gen_i.hh
-  # GEOM_GEOM_I.hxx
+  GEOM_IFieldOperations_i.hh
+  GEOM_BaseObject_i.hh
+  GEOM_Object_i.hh
+  GEOM_IOperations_i.hh
+  GEOM_IBasicOperations_i.hh
+  GEOM_IHealingOperations_i.hh
+  GEOM_I3DPrimOperations_i.hh
+  GEOM_IShapesOperations_i.hh
+  GEOM_IBlocksOperations_i.hh
+  GEOM_IBooleanOperations_i.hh
+  GEOM_ICurvesOperations_i.hh
+  GEOM_ILocalOperations_i.hh
+  GEOM_IInsertOperations_i.hh
+  GEOM_ITransformOperations_i.hh
+  GEOM_IMeasureOperations_i.hh
+  GEOM_IGroupOperations_i.hh
+  GEOM_Gen_i.hh
+  GEOM_Gen_Session_i.hh
+  GEOM_Gen_No_Session_i.hh
+  GEOM_GEOM_I.hxx
   GEOM_wrap.hxx
   )
 # --- sources ---
@@ -93,6 +104,8 @@ SET(GEOMEngine_SOURCES
   GEOM_IGroupOperations_i.cc
   GEOM_IFieldOperations_i.cc
   GEOM_Gen_i.cc
+  GEOM_Gen_Session_i.cc
+  GEOM_Gen_No_Session_i.cc
   GEOM_DumpPython.cc
   )
 
@@ -102,4 +115,4 @@ ADD_LIBRARY(GEOMEngine ${GEOMEngine_SOURCES})
 TARGET_LINK_LIBRARIES(GEOMEngine ${_link_LIBRARIES})
 INSTALL(TARGETS GEOMEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
-INSTALL(FILES ${GEOMEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
\ No newline at end of file
+INSTALL(FILES ${GEOMEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})