forked from hirotakaster/pcl-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
106 lines (84 loc) · 2.26 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
# reference pcl cmakelists.txt cmake policy
# start
if(POLICY CMP0017)
# Do not include files in CMAKE_MODULE_PATH from files
# in CMake module directory. Fix MXE build
cmake_policy(SET CMP0017 NEW)
endif()
if(POLICY CMP0020 AND (WIN32 AND NOT MINGW))
cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows
endif()
if(POLICY CMP0042)
# Uses Mac OS X @rpath in the target's install name
cmake_policy(SET CMP0042 NEW)
endif()
if(POLICY CMP0048)
cmake_policy(SET CMP0048 OLD) # do not use VERSION option in project() command
endif()
if(POLICY CMP0054)
cmake_policy(SET CMP0054 OLD) # Silent warnings about quoted variables
endif()
if(POLICY CMP0074)
# TODO:
# 1. Find*.cmake modules need to be individually verified.
# 2. PCLConfig.cmake needs to be changed.
cmake_policy(SET CMP0074 OLD)
endif()
# end
# use elseif
cmake_policy(GET CMP0054 NEW)
# http://cmake.3232098.n2.nabble.com/Computation-of-CMAKE-OSX-SYSROOT-td7598354.html
# set use xcode target version
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14")
project(superbuild NONE)
include(setup-superbuild.cmake)
include(setup-project-variables.cmake)
include(external-project-macros.cmake)
install_eigen()
# Build overTime
# fetch_vtk()
fetch_pcl()
fetch_boost()
fetch_flann()
fetch_qhull()
# Build overTime and
# pcl-vtk not Implement ios/android vtk I/F
# compile_vtk()
set(tags)
# Add
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()
#
if (BUILD_IOS_DEVICE_ARM64)
list(APPEND tags ios-device-arm64)
endif()
if (BUILD_IOS_DEVICE_ARMV7)
list(APPEND tags ios-device-armv7)
endif()
if (BUILD_IOS_DEVICE_ARMV7S)
list(APPEND tags ios-device-armv7s)
endif()
if (BUILD_IOS_SIMULATOR_X86_64)
list(APPEND tags ios-simulator-x86-64)
endif()
if (BUILD_IOS_SIMULATOR_I386)
list(APPEND tags ios-simulator-i386)
endif()
foreach(tag ${tags})
# Build overTime and pcl_visualization not support android/ios IF
# crosscompile_vtk(${tag})
crosscompile_boost(${tag})
# crosscompile_boost_on_b2(${tag})
crosscompile_flann(${tag})
crosscompile_qhull(${tag})
# use pcl
crosscompile_pcl(${tag})
endforeach()