Salome HOME
Copy XAO library source code from GEOM
[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 # additional include directories
27 INCLUDE_DIRECTORIES(
28   ${PTHREAD_INCLUDE_DIR}
29   ${LIBXML2_INCLUDE_DIR}
30   ${CAS_INCLUDE_DIRS}
31   )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(
35   ${LIBXML2_DEFINITIONS} 
36   ${CAS_DEFINITIONS}
37   )
38
39 # libraries to link to
40 SET(_link_LIBRARIES
41   ${PTHREAD_LIBRARIES}
42   ${LIBXML2_LIBRARIES}
43   ${CAS_TKBRep} ${CAS_TKTopAlgo} ${CAS_TKG2d}
44   )
45
46 # --- headers ---
47
48 SET(XAO_HEADERS
49   XAO.hxx 
50   XAO_BooleanField.hxx
51   XAO_BooleanStep.hxx
52   XAO_BrepGeometry.hxx
53   XAO_DoubleField.hxx
54   XAO_DoubleStep.hxx
55   XAO_Exception.hxx
56   XAO_Field.hxx
57   XAO_GeometricElement.hxx
58   XAO_Geometry.hxx
59   XAO_Group.hxx
60   XAO_IntegerField.hxx
61   XAO_IntegerStep.hxx
62   XAO_Step.hxx
63   XAO_StringField.hxx
64   XAO_StringStep.hxx
65   XAO_Xao.hxx
66   XAO_XaoExporter.hxx
67   XAO_XaoUtils.hxx
68   )
69
70 # --- sources ---
71
72 SET(XAO_SOURCES
73   XAO_BooleanField.cxx
74   XAO_BooleanStep.cxx
75   XAO_BrepGeometry.cxx
76   XAO_DoubleField.cxx
77   XAO_DoubleStep.cxx
78   XAO_Field.cxx
79   XAO_GeometricElement.cxx
80   XAO_Geometry.cxx
81   XAO_Group.cxx
82   XAO_IntegerField.cxx
83   XAO_IntegerStep.cxx
84   XAO_Step.cxx
85   XAO_StringField.cxx
86   XAO_StringStep.cxx
87   XAO_Xao.cxx
88   XAO_XaoExporter.cxx
89   XAO_XaoUtils.cxx
90   )
91
92 # --- rules ---
93
94 ADD_LIBRARY(XAO ${XAO_SOURCES})
95 TARGET_LINK_LIBRARIES(XAO ${_link_LIBRARIES})
96 INSTALL(TARGETS XAO EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
97
98 INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})