forked from patmarion/pcl-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-project-variables.cmake
85 lines (74 loc) · 2.83 KB
/
setup-project-variables.cmake
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
find_package(PythonInterp REQUIRED)
find_package(Git REQUIRED)
set(vtk_module_defaults
-DVTK_Group_StandAlone:BOOL=OFF
-DVTK_Group_Rendering:BOOL=OFF
-DModule_vtkFiltersCore:BOOL=ON
-DModule_vtkFiltersModeling:BOOL=ON
-DModule_vtkFiltersSources:BOOL=ON
-DModule_vtkFiltersGeometry:BOOL=ON
-DModule_vtkIOGeometry:BOOL=ON
-DModule_vtkIOLegacy:BOOL=ON
-DModule_vtkIOXML:BOOL=ON
-DModule_vtkIOImage:BOOL=ON
-DModule_vtkIOPLY:BOOL=ON
-DModule_vtkIOInfovis:BOOL=ON
-DModule_vtkImagingCore:BOOL=ON
-DModule_vtkParallelCore:BOOL=ON
-DModule_vtkRenderingCore:BOOL=ON
-DModule_vtkRenderingFreeType:BOOL=ON
-DModule_vtkInteractionImage:BOOL=ON
)
set(vtk_module_tools
-DVTK_Group_StandAlone:BOOL=OFF
-DVTK_Group_Rendering:BOOL=OFF
-DModule_vtkCommonColor:BOOL=ON
-DModule_vtkCommonComputationalGeometry:BOOL=ON
-DModule_vtkCommonDataModel:BOOL=ON
-DModule_vtkCommonExecutionModel:BOOL=ON
-DModule_vtkCommonMath:BOOL=ON
-DModule_vtkCommonMisc:BOOL=ON
-DModule_vtkCommonSystem:BOOL=ON
-DModule_vtkCommonTransforms:BOOL=ON
-DModule_vtkFiltersCore:BOOL=ON
-DModule_vtkFiltersExtraction:BOOL=ON
-DModule_vtkFiltersGeneral:BOOL=ON
-DModule_vtkFiltersGeneric:BOOL=ON
-DModule_vtkFiltersGeometry:BOOL=ON
-DModule_vtkIOCore:BOOL=ON
-DModule_vtkIOGeometry:BOOL=ON
-DModule_vtkIOLegacy:BOOL=ON
-DModule_vtkInteractionImage:BOOL=ON
)
#not used
# set(module_defaults
# -DVTK_Group_StandAlone:BOOL=OFF
# -DVTK_Group_Rendering:BOOL=OFF
# -DModule_vtkFiltersCore:BOOL=ON
# -DModule_vtkFiltersModeling:BOOL=ON
# -DModule_vtkFiltersSources:BOOL=ON
# -DModule_vtkFiltersGeometry:BOOL=ON
# -DModule_vtkIOGeometry:BOOL=ON
# -DModule_vtkIOXML:BOOL=ON
# -DModule_vtkIOImage:BOOL=ON
# -DModule_vtkIOPLY:BOOL=ON
# -DModule_vtkImagingCore:BOOL=ON
# -DModule_vtkParallelCore:BOOL=ON
# -DModule_vtkRenderingCore:BOOL=ON
# -DModule_vtkRenderingFreeType:BOOL=ON
# )
#check for ios first:
set(toolchain_dir ${CMAKE_SOURCE_DIR}/toolchains)
option(BUILD_ANDROID "Build for Android" ON)
option(BUILD_IOS_DEVICE "Build for iOS device" ON)
option(BUILD_IOS_SIMULATOR "Build for iOS simulator" OFF)
set(toolchain_dir ${CMAKE_SOURCE_DIR}/toolchains)
set(toolchain_ios_simulator ${toolchain_dir}/toolchain-ios-simulator.cmake)
set(toolchain_ios_device ${toolchain_dir}/toolchain-ios-device.cmake)
set(toolchain_android ${toolchain_dir}/toolchain-android.cmake)
set(try_run_results_vtk_ios_simulator ${toolchain_dir}/vtk-try-run-results.cmake)
set(try_run_results_vtk_ios_device ${toolchain_dir}/vtk-try-run-results.cmake)
set(try_run_results_vtk_android ${toolchain_dir}/vtk-try-run-results.cmake)
set(try_run_results_pcl_ios_simulator ${toolchain_dir}/pcl-try-run-results.cmake)
set(try_run_results_pcl_ios_device ${toolchain_dir}/pcl-try-run-results.cmake)
set(try_run_results_pcl_android ${toolchain_dir}/pcl-try-run-results.cmake)