Salome HOME
Replace XAO library by the same XAOShaper in order to avoid mixing with the same...
[modules/shaper.git] / src / XAO / CMakeLists.txt
1 # Copyright (C) 2012-2015  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 INCLUDE(Common)
27 INCLUDE(XMLProcessing)
28
29 # additional include directories
30 INCLUDE_DIRECTORIES(${CAS_INCLUDE_DIRS})
31
32 # additional preprocessor / compiler flags
33 ADD_DEFINITIONS(-DXAO_EXPORTS ${CAS_DEFINITIONS})
34
35 # libraries to link to
36 SET(PROJECT_LIBRARIES
37   ${LIBXML2_LIBRARIES}
38   ${CAS_TKBRep} ${CAS_TKTopAlgo} ${CAS_TKG2d}
39   )
40
41 # --- headers ---
42
43 SET(XAO_HEADERS
44   XAO.hxx
45   XAO_BooleanField.hxx
46   XAO_BooleanStep.hxx
47   XAO_BrepGeometry.hxx
48   XAO_DoubleField.hxx
49   XAO_DoubleStep.hxx
50   XAO_Exception.hxx
51   XAO_Field.hxx
52   XAO_GeometricElement.hxx
53   XAO_Geometry.hxx
54   XAO_Group.hxx
55   XAO_IntegerField.hxx
56   XAO_IntegerStep.hxx
57   XAO_Step.hxx
58   XAO_StringField.hxx
59   XAO_StringStep.hxx
60   XAO_Xao.hxx
61   XAO_XaoExporter.hxx
62   XAO_XaoUtils.hxx
63   )
64
65 # --- sources ---
66
67 SET(XAO_SOURCES
68   XAO_BooleanField.cxx
69   XAO_BooleanStep.cxx
70   XAO_BrepGeometry.cxx
71   XAO_DoubleField.cxx
72   XAO_DoubleStep.cxx
73   XAO_Field.cxx
74   XAO_GeometricElement.cxx
75   XAO_Geometry.cxx
76   XAO_Group.cxx
77   XAO_IntegerField.cxx
78   XAO_IntegerStep.cxx
79   XAO_Step.cxx
80   XAO_StringField.cxx
81   XAO_StringStep.cxx
82   XAO_Xao.cxx
83   XAO_XaoExporter.cxx
84   XAO_XaoUtils.cxx
85   )
86
87 # --- rules ---
88
89 ADD_LIBRARY(XAOShaper SHARED ${XAO_SOURCES} ${XAO_HEADERS})
90 TARGET_LINK_LIBRARIES(XAOShaper ${PROJECT_LIBRARIES})
91 INSTALL(TARGETS XAOShaper DESTINATION ${SHAPER_INSTALL_BIN})