-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathsetup-project-variables.cmake
43 lines (33 loc) · 1.49 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
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
)
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)