]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTTools/CMakeLists.txt
Salome HOME
CMake porting.
[modules/geom.git] / src / NMTTools / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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   ${CAS_INCLUDE_DIRS}
25   ${KERNEL_INCLUDE_DIRS}
26   ${PROJECT_SOURCE_DIR}/src/NMTDS
27   ${CMAKE_CURRENT_SOURCE_DIR}
28   )
29
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(
32   ${CAS_DEFINITIONS}
33   )
34
35 # libraries to link to
36 SET(_link_LIBRARIES
37   ${CAS_KERNEL}
38   ${CAS_TKBool} ${CAS_BO}
39   NMTDS
40   )
41
42 # --- headers ---
43
44 SET(NMTTools_HEADERS
45   NMTTools_CheckerSI.hxx
46   NMTTools_CommonBlock.hxx
47   NMTTools_CommonBlockAPI.hxx
48   NMTTools_CommonBlockPool.hxx
49   NMTTools_CommonBlockPool.hxx
50   NMTTools_CoupleOfShape.hxx
51   NMTTools_IndexedDataMapOfShapeIndexedMapOfShape.hxx
52   NMTTools_ListIteratorOfListOfCommonBlock.hxx
53   NMTTools_ListIteratorOfListOfCoupleOfShape.hxx
54   NMTTools_ListIteratorOfListOfCoupleOfShape.hxx
55   NMTTools_ListOfCommonBlock.hxx
56   NMTTools_ListOfCoupleOfShape.hxx
57   NMTTools_PPaveFiller.hxx
58   NMTTools_PaveFiller.hxx
59   NMTTools_Tools.hxx
60   )
61
62 # --- sources ---
63
64 SET(NMTTools_SOURCES
65   NMTTools_CheckerSI.cxx
66   NMTTools_CheckerSI_1.cxx
67   NMTTools_CommonBlockAPI.cxx
68   NMTTools_CommonBlock.cxx
69   NMTTools_CommonBlockPool.cxx
70   NMTTools_CoupleOfShape.cxx
71   NMTTools_DEProcessor.cxx
72   NMTTools_FaceInfo.cxx
73   NMTTools_PaveFiller_0.cxx
74   NMTTools_PaveFiller_1.cxx
75   NMTTools_PaveFiller_2.cxx
76   NMTTools_PaveFiller_3.cxx
77   NMTTools_PaveFiller_4.cxx
78   NMTTools_PaveFiller_5.cxx
79   NMTTools_PaveFiller_6.cxx
80   NMTTools_PaveFiller_7.cxx
81   NMTTools_PaveFiller_8.cxx
82   NMTTools_PaveFiller_9.cxx
83   NMTTools_PaveFiller.cxx
84   NMTTools_Tools.cxx
85   )
86
87 # --- rules ---
88
89 ADD_LIBRARY(NMTTools ${NMTTools_SOURCES})
90 TARGET_LINK_LIBRARIES(NMTTools ${_link_LIBRARIES})
91 INSTALL(TARGETS NMTTools EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
92
93 INSTALL(FILES ${NMTTools_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})