Salome HOME
Merge from BR_new_bop4 (porting to new OCCT BOP) 13/09/2013
[modules/geom.git] / src / AdvancedEngine / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # --- options ---
21
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${OMNIORB_INCLUDE_DIR}
25   ${CAS_INCLUDE_DIRS}
26   ${KERNEL_INCLUDE_DIRS}
27   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
28   ${PROJECT_SOURCE_DIR}/src/GEOM
29   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
30   ${PROJECT_SOURCE_DIR}/src/GEOM_I
31   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
32   ${PROJECT_BINARY_DIR}/idl
33   ${CMAKE_CURRENT_SOURCE_DIR}
34   ${PROJECT_BINARY_DIR}
35   )
36
37 # additional preprocessor / compiler flags
38 ADD_DEFINITIONS(
39   ${CAS_DEFINITIONS}
40   ${OMNIORB_DEFINITIONS}
41   )
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   GEOMEngine
46   SalomeIDLGEOM
47   ${KERNEL_SALOMELocalTrace}
48   ${KERNEL_SalomeGenericObj}
49   ${KERNEL_TOOLSDS}
50   ${KERNEL_SalomeContainer}
51   ${KERNEL_SalomeNS}
52   )
53
54 # --- headers ---
55
56 SET(AdvancedEngine_HEADERS
57   AdvancedEngine_Types.hxx
58   # AdvancedEngine_OperationsCreator.hh
59   # GEOM_AdvancedEngine.hxx
60   # GEOMImpl_IAdvancedOperations.hxx
61   # GEOM_IAdvancedOperations_i.hh
62   # #ADVANCED_INCLUDES:
63   # GEOMImpl_IPipeTShape.hxx GEOMImpl_PipeTShapeDriver.hxx
64   # GEOMImpl_IDividedDisk.hxx GEOMImpl_DividedDiskDriver.hxx
65   # GEOMImpl_IDividedCylinder.hxx GEOMImpl_DividedCylinderDriver.hxx
66   # GEOMImpl_ISmoothingSurface.hxx GEOMImpl_SmoothingSurfaceDriver.hxx
67   )
68 # --- sources ---
69
70 SET(AdvancedEngine_SOURCES
71   AdvancedEngine.cxx
72   AdvancedEngine_OperationsCreator.cc
73   GEOMImpl_IAdvancedOperations.cxx
74   GEOM_IAdvancedOperations_i.cc
75   # ADVANCED_SOURCES:
76   GEOMImpl_PipeTShapeDriver.cxx
77   GEOMImpl_DividedDiskDriver.cxx
78   #GEOMImpl_DividedCylinderDriver.cxx
79   GEOMImpl_SmoothingSurfaceDriver.cxx
80   ##@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@##
81   )
82
83 # --- rules ---
84
85 ADD_LIBRARY(AdvancedEngine ${AdvancedEngine_SOURCES})
86 TARGET_LINK_LIBRARIES(AdvancedEngine ${_link_LIBRARIES})
87 INSTALL(TARGETS AdvancedEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
88
89 INSTALL(FILES ${AdvancedEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})