forked from patmarion/pcl-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (34 loc) · 804 Bytes
/
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
cmake_minimum_required(VERSION 2.8.6)
project(superbuild NONE)
include(setup-superbuild.cmake)
include(setup-project-variables.cmake)
include(external-project-macros.cmake)
install_eigen()
fetch_vtk()
fetch_pcl()
fetch_boost()
fetch_flann()
compile_vtk()
set(tags)
if(BUILD_ANDROID)
list(APPEND tags android)
endif()
if(BUILD_IOS_DEVICE)
list(APPEND tags ios-device)
endif()
if(BUILD_IOS_SIMULATOR)
list(APPEND tags ios-simulator)
endif()
foreach(tag ${tags})
crosscompile_vtk(${tag})
crosscompile_boost(${tag})
crosscompile_flann(${tag})
crosscompile_pcl(${tag})
endforeach()
if (BUILD_IOS_DEVICE AND BUILD_IOS_SIMULATOR)
create_pcl_universal_framework()
elseif(BUILD_IOS_DEVICE)
create_pcl_ios_framework()
elseif(BUILD_IOS_SIMULATOR)
create_pcl_simulator_framework()
endif()