Salome HOME
CMake porting
[modules/geom.git] / src / OCC2VTK / 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   ${VTK_INCLUDE_DIRS}
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   vtkFiltersCore
38   ${CAS_KERNEL} 
39   ${CAS_TKMesh} ${CAS_TKTopAlgo}
40   ${KERNEL_SALOMELocalTrace}
41   )
42
43 # --- headers ---
44
45 SET(OCC2VTK_HEADERS
46   OCC2VTK.h             
47   OCC2VTK_Tools.h               
48   GEOM_EdgeSource.h     
49   GEOM_FaceSource.h     
50   GEOM_ShadingFace.h    
51   GEOM_VertexSource.h   
52   GEOM_WireframeFace.h
53   )
54
55 # --- sources ---
56
57 SET(OCC2VTK_SOURCES
58   OCC2VTK_Tools.cxx     
59   GEOM_EdgeSource.cxx   
60   GEOM_FaceSource.cxx   
61   GEOM_ShadingFace.cxx  
62   GEOM_VertexSource.cxx 
63   GEOM_WireframeFace.cxx
64   )
65
66 # --- rules ---
67
68 ADD_LIBRARY(OCC2VTK ${OCC2VTK_SOURCES})
69 TARGET_LINK_LIBRARIES(OCC2VTK ${_link_LIBRARIES})
70 INSTALL(TARGETS OCC2VTK EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
71
72 INSTALL(FILES ${OCC2VTK_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
73
74