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