]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/CMakeLists.txt
Salome HOME
0022616: [CEA 1038] Improve the quality of stl and vtk exports
[modules/geom.git] / src / GEOM_I / 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/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
44 # libraries to link to
45 SET(_link_LIBRARIES
46   GEOMImpl
47   GEOMUtils
48   SalomeIDLGEOM
49   ${KERNEL_SALOMELocalTrace}
50   ${KERNEL_SalomeGenericObj}
51   ${KERNEL_TOOLSDS}
52   ${KERNEL_SalomeContainer}
53   ${KERNEL_SalomeNS}
54   )
55
56 # --- headers ---
57
58 SET(GEOMEngine_HEADERS
59   GEOM_IFieldOperations_i.hh
60   GEOM_BaseObject_i.hh
61   GEOM_Object_i.hh
62   GEOM_IOperations_i.hh
63   GEOM_IBasicOperations_i.hh
64   GEOM_IHealingOperations_i.hh
65   GEOM_I3DPrimOperations_i.hh
66   GEOM_IShapesOperations_i.hh
67   GEOM_IBlocksOperations_i.hh
68   GEOM_IBooleanOperations_i.hh
69   GEOM_ICurvesOperations_i.hh
70   GEOM_ILocalOperations_i.hh
71   GEOM_IInsertOperations_i.hh
72   GEOM_ITransformOperations_i.hh
73   GEOM_IMeasureOperations_i.hh
74   GEOM_IGroupOperations_i.hh
75   GEOM_Gen_i.hh
76   GEOM_GEOM_I.hxx
77   GEOM_wrap.hxx
78   )
79 # --- sources ---
80
81 SET(GEOMEngine_SOURCES
82   GEOM_BaseObject_i.cc
83   GEOM_Object_i.cc
84   GEOM_Field_i.cc
85   GEOM_IOperations_i.cc
86   GEOM_IBasicOperations_i.cc
87   GEOM_IHealingOperations_i.cc
88   GEOM_I3DPrimOperations_i.cc
89   GEOM_IShapesOperations_i.cc
90   GEOM_IBlocksOperations_i.cc
91   GEOM_IBooleanOperations_i.cc
92   GEOM_ICurvesOperations_i.cc
93   GEOM_ILocalOperations_i.cc
94   GEOM_IInsertOperations_i.cc
95   GEOM_ITransformOperations_i.cc
96   GEOM_IMeasureOperations_i.cc
97   GEOM_IGroupOperations_i.cc
98   GEOM_IFieldOperations_i.cc
99   GEOM_Gen_i.cc
100   GEOM_DumpPython.cc
101   )
102
103 # --- rules ---
104
105 ADD_LIBRARY(GEOMEngine ${GEOMEngine_SOURCES})
106 TARGET_LINK_LIBRARIES(GEOMEngine ${_link_LIBRARIES})
107 INSTALL(TARGETS GEOMEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
108
109 INSTALL(FILES ${GEOMEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})