forked from 461353349/OCCReader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
93 lines (72 loc) · 2.37 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright (C) 2014-2015 KIT-INR/NK
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
PROJECT( OCCReader )
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.7 )
SET(CMAKE_BUILD_TYPE Release)
MARK_AS_ADVANCED(
LIBRARY_OUTPUT_PATH
EXECUTABLE_OUTPUT_PATH
)
#Package ParaView is under build folder.
SET(CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR})
IF(WIN32)
MESSAGE( Windows system )
SET(WINDOWS TRUE)
ADD_DEFINITIONS(-DWNT)
ENDIF(WIN32)
FIND_PACKAGE( ParaView COMPONENTS pqCore NO_MODULE)
IF( ParaView_FOUND )
INCLUDE(${OCCReader_SOURCE_DIR}/FindCAS.cmake)
INCLUDE_DIRECTORIES( ${CAS_INCLUDE_DIRS})
INCLUDE( ${PARAVIEW_USE_FILE} )
FIND_PACKAGE( VTK COMPONENTS vtkClientServer NO_MODULE)
FIND_PACKAGE( VTK COMPONENTS vtkCommonDataModel NO_MODULE)
FIND_PACKAGE( VTK COMPONENTS vtkCommonExecutionModel NO_MODULE)
INCLUDE( ${VTK_USE_FILE} )
SET( OCCREADER_SRCS
${OCCReader_SOURCE_DIR}/vtkOCCReader.cxx
${OCCReader_SOURCE_DIR}/GEOM_EdgeSource.cxx
${OCCReader_SOURCE_DIR}/GEOM_FaceSource.cxx
${OCCReader_SOURCE_DIR}/GEOM_ShadingFace.cxx
${OCCReader_SOURCE_DIR}/GEOM_VertexSource.cxx
${OCCReader_SOURCE_DIR}/GEOM_WireframeFace.cxx
)
ADD_PARAVIEW_PLUGIN( OCCReader "1.0"
SERVER_MANAGER_XML OCCReaderServerManager.xml
SERVER_MANAGER_SOURCES ${OCCREADER_SRCS}
REQUIRED_ON_SERVER)
TARGET_LINK_LIBRARIES(OCCReader
vtkCommonDataModel
vtkCommonExecutionModel
vtkClientServer
pqCore
${TKG3d}
${TKGeomBase}
${TKGeomAlgo}
${TKBRep}
${TKTopAlgo}
${TKG2d}
${TKMesh}
${TKSTEP}
${TKCAF}
${TKLCAF}
${TKSTEPBase}
${TKIGES}
)
ENDIF( ParaView_FOUND )