-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
executable file
·35 lines (24 loc) · 1.01 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
cmake_minimum_required(VERSION 2.6)
PROJECT(PoissonReconstruction)
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
SET(BUILD_PARAVIEW_PLUGIN OFF CACHE BOOL "Build Paraview plugin?")
if(BUILD_PARAVIEW_PLUGIN)
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../)
ADD_PARAVIEW_PLUGIN(PoissonReconstructionPlugin "1.0"
SERVER_MANAGER_XML vtkPoissonReconstruction.xml
SERVER_MANAGER_SOURCES vtkPoissonReconstruction.cxx
SERVER_SOURCES Factor.cpp Geometry.cpp MarchingCubes.cpp MultiGridOctest.cpp MultiGridOctreeData.cpp
)
endif(BUILD_PARAVIEW_PLUGIN)
ADD_EXECUTABLE(PoissonReconstruction Example.cxx vtkPoissonReconstruction.cxx Factor.cpp Geometry.cpp MarchingCubes.cpp MultiGridOctest.cpp MultiGridOctreeData.cpp )
TARGET_LINK_LIBRARIES(PoissonReconstruction vtkHybrid)
ADD_TEST( PoissonReconstructionTest
${PoissonReconstruction_BINARY_DIR}/PoissonReconstruction
${PoissonReconstruction_SOURCE_DIR}/data/horsePoints.vtp
5
temp.vtp
)
INCLUDE( CTest )