-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (48 loc) · 1.79 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
cmake_minimum_required(VERSION 3.1)
project(examples)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(vtkbool)
add_subdirectory(vtkbool)
add_subdirectory(walnut EXCLUDE_FROM_ALL)
find_package(VTK REQUIRED COMPONENTS
vtkCommonComputationalGeometry
vtkCommonCore
vtkFiltersGeneral
vtkFiltersHybrid
vtkFiltersModeling
vtkFiltersSources
vtkInteractionStyle
vtkImagingOpenGL2
vtkIOGeometry
vtkIOImage
vtkIOPLY
vtkIOXML
vtkRenderingCore
vtkRenderingFreeType
vtkRenderingOpenGL2
vtkViewsInfovis
NO_MODULE)
include(${VTK_USE_FILE})
include_directories(vtkbool/libs/vp)
find_package(GLEW REQUIRED)
add_executable(vtkbool_union vtkbool_union.cxx)
target_link_libraries(vtkbool_union ${GLEW_LIBRARIES} ${VTK_LIBRARIES} vtkbool)
add_executable(walnut_union walnut_union.cxx)
target_link_libraries(walnut_union ${GLEW_LIBRARIES} ${VTK_LIBRARIES} walnut_vtk)
add_executable(translate translate.cxx)
target_link_libraries(translate ${GLEW_LIBRARIES} ${VTK_LIBRARIES} vtkbool)
add_executable(native_union native_union.cxx)
target_link_libraries(native_union ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(torus torus.cxx)
target_link_libraries(torus ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(append_for_union append_for_union.cxx)
target_link_libraries(append_for_union ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(3dhull 3dhull.cxx)
target_link_libraries(3dhull ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(extrusion extrusion.cxx)
target_link_libraries(extrusion ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(spring spring.cxx)
target_link_libraries(spring ${GLEW_LIBRARIES} ${VTK_LIBRARIES})
add_executable(colors colors.cxx)
target_link_libraries(colors ${GLEW_LIBRARIES} ${VTK_LIBRARIES} vtkbool)