Salome HOME
Merge branch V7_3_1_BR
[modules/geom.git] / src / AdvancedEngine / CMakeLists.txt
1 # Copyright (C) 2012-2014  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, or (at your option) any later version.
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   ${PTHREAD_INCLUDE_DIR}
26   ${CAS_INCLUDE_DIRS}
27   ${KERNEL_INCLUDE_DIRS}
28   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
29   ${PROJECT_SOURCE_DIR}/src/GEOM
30   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
31   ${PROJECT_SOURCE_DIR}/src/GEOM_I
32   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
33   ${PROJECT_BINARY_DIR}/idl
34   ${CMAKE_CURRENT_SOURCE_DIR}
35   ${PROJECT_BINARY_DIR}
36   )
37
38 # additional preprocessor / compiler flags
39 ADD_DEFINITIONS(
40   ${CAS_DEFINITIONS}
41   ${OMNIORB_DEFINITIONS}
42   )
43
44 # libraries to link to
45 SET(_link_LIBRARIES
46   GEOMEngine
47   SalomeIDLGEOM
48   ${KERNEL_SALOMELocalTrace}
49   ${KERNEL_SalomeGenericObj}
50   ${KERNEL_TOOLSDS}
51   ${KERNEL_SalomeContainer}
52   ${KERNEL_SalomeNS}
53   )
54
55 # --- headers ---
56
57 SET(AdvancedEngine_HEADERS
58   AdvancedEngine_Types.hxx
59   # AdvancedEngine_OperationsCreator.hh
60   # GEOM_AdvancedEngine.hxx
61   # GEOMImpl_IAdvancedOperations.hxx
62   # GEOM_IAdvancedOperations_i.hh
63   # #ADVANCED_INCLUDES:
64   # GEOMImpl_IPipeTShape.hxx GEOMImpl_PipeTShapeDriver.hxx
65   # GEOMImpl_IDividedDisk.hxx GEOMImpl_DividedDiskDriver.hxx
66   # GEOMImpl_IDividedCylinder.hxx GEOMImpl_DividedCylinderDriver.hxx
67   # GEOMImpl_ISmoothingSurface.hxx GEOMImpl_SmoothingSurfaceDriver.hxx
68   )
69 # --- sources ---
70
71 SET(AdvancedEngine_SOURCES
72   AdvancedEngine.cxx
73   AdvancedEngine_OperationsCreator.cc
74   GEOMImpl_IAdvancedOperations.cxx
75   GEOM_IAdvancedOperations_i.cc
76   # ADVANCED_SOURCES:
77   GEOMImpl_PipeTShapeDriver.cxx
78   GEOMImpl_DividedDiskDriver.cxx
79   #GEOMImpl_DividedCylinderDriver.cxx
80   GEOMImpl_SmoothingSurfaceDriver.cxx
81   ##@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@##
82   )
83
84 # --- rules ---
85
86 ADD_LIBRARY(AdvancedEngine ${AdvancedEngine_SOURCES})
87 TARGET_LINK_LIBRARIES(AdvancedEngine ${_link_LIBRARIES})
88 INSTALL(TARGETS AdvancedEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
89
90 INSTALL(FILES ${AdvancedEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})