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