Salome HOME
f5ec211d2350f543ce5bbff041827711ed55df32
[modules/shaper.git] / src / XAO / CMakeLists.txt
1 # Copyright (C) 2012-2022  CEA/DEN, EDF R&D
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 #IF(SALOME_BUILD_TESTS)
21 #  ADD_SUBDIRECTORY(tests)
22 #ENDIF(SALOME_BUILD_TESTS)
23
24 # --- options ---
25
26 INCLUDE(Common)
27 INCLUDE(XMLProcessing)
28
29 # additional include directories
30 INCLUDE_DIRECTORIES(${OpenCASCADE_INCLUDE_DIR})
31
32 # additional preprocessor / compiler flags
33 ADD_DEFINITIONS(-DXAO_EXPORTS ${OpenCASCADE_DEFINITIONS})
34
35 # libraries to link to
36 SET(PROJECT_LIBRARIES
37   ${LIBXML2_LIBRARIES}
38   ${OpenCASCADE_ModelingData_LIBRARIES}
39   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
40   )
41
42 # --- headers ---
43
44 SET(XAO_HEADERS
45   XAO.hxx
46   XAO_BooleanField.hxx
47   XAO_BooleanStep.hxx
48   XAO_BrepGeometry.hxx
49   XAO_DoubleField.hxx
50   XAO_DoubleStep.hxx
51   XAO_Exception.hxx
52   XAO_Field.hxx
53   XAO_GeometricElement.hxx
54   XAO_Geometry.hxx
55   XAO_Group.hxx
56   XAO_IntegerField.hxx
57   XAO_IntegerStep.hxx
58   XAO_Step.hxx
59   XAO_StringField.hxx
60   XAO_StringStep.hxx
61   XAO_Xao.hxx
62   XAO_XaoExporter.hxx
63   XAO_XaoUtils.hxx
64   )
65
66 # --- sources ---
67
68 SET(XAO_SOURCES
69   XAO_BooleanField.cxx
70   XAO_BooleanStep.cxx
71   XAO_BrepGeometry.cxx
72   XAO_DoubleField.cxx
73   XAO_DoubleStep.cxx
74   XAO_Field.cxx
75   XAO_GeometricElement.cxx
76   XAO_Geometry.cxx
77   XAO_Group.cxx
78   XAO_IntegerField.cxx
79   XAO_IntegerStep.cxx
80   XAO_Step.cxx
81   XAO_StringField.cxx
82   XAO_StringStep.cxx
83   XAO_Xao.cxx
84   XAO_XaoExporter.cxx
85   XAO_XaoUtils.cxx
86   )
87
88 # --- rules ---
89
90 ADD_LIBRARY(XAOShaper SHARED ${XAO_SOURCES} ${XAO_HEADERS})
91 TARGET_LINK_LIBRARIES(XAOShaper ${PROJECT_LIBRARIES})
92 INSTALL(TARGETS XAOShaper DESTINATION ${SHAPER_INSTALL_BIN})
93 INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SHAPER_INSTALL_HEADERS})