-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
74 lines (60 loc) · 2.08 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
if(NOT ParaView_SOURCE_DIR)
cmake_minimum_required(VERSION 2.8)
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries")
find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})
find_package(PythonLibs REQUIRED)
endif()
find_package(libpointmatcher 1.2.3 REQUIRED)
include_directories("${libpointmatcher_INCLUDE_DIRS}")
message(STATUS "Using libpointmatcher version ${libpointmatcher_VERSION}")
include_directories(${VTK_INCLUDE_DIRS})
include_directories(${VTK_PYTHON_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(gui_sources)
set(gui_interfaces)
set(gui_xml)
set(gui_deps)
set(servermanager_sources)
set(servermanager_xml)
set(server_deps)
list(APPEND servermanager_sources
vtkPMConversions.cxx
vtkPMFixStepSamplingDataPointsFilter.cxx
vtkPMSurfaceNormalDataPointsFilter.cxx
vtkPMMaxDistDataPointsFilter.cxx
vtkPMMaxDensityDataPointsFilter.cxx
vtkPMObservationDirectionDataPointsFilter.cxx
vtkPMOrientNormalsDataPointsFilter.cxx
)
list(APPEND servermanager_xml
xml/vtkPMFixStepSamplingDataPointsFilter.xml
xml/vtkPMSurfaceNormalDataPointsFilter.xml
xml/vtkPMMaxDistDataPointsFilter.xml
xml/vtkPMMaxDensityDataPointsFilter.xml
xml/vtkPMObservationDirectionDataPointsFilter.xml
xml/vtkPMOrientNormalsDataPointsFilter.xml
)
list(APPEND server_deps
${VTK_LIBRARIES}
${libpointmatcher_LIBRARIES}
)
set(library_name vtkPMFilters)
include(GenerateExportHeader)
add_paraview_plugin(${library_name} "1.0"
GUI_INTERFACES ${gui_interfaces}
# GUI_RESOURCE_FILES ${gui_xml}
GUI_SOURCES ${gui_sources}
SERVER_MANAGER_XML ${servermanager_xml}
SERVER_MANAGER_SOURCES ${servermanager_sources}
)
generate_export_header(${library_name} EXPORT_FILE_NAME ${library_name}Module.h)
target_link_libraries(${library_name} LINK_PUBLIC ${gui_deps} ${server_deps})
# if(VTK_WRAP_PYTHON)
# include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/wrap-python.cmake)
# wrap_python(${library_name} "${servermanager_sources}" ${VTK_LIBRARIES})
# endif()
# if(BUILD_TESTING)
# add_subdirectory(Testing)
# endif()