/
options.cmake
143 lines (117 loc) · 5.11 KB
/
options.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Options for optional components.
#
option(WITH_COMPLETION
"Install bash completions scripts for command line?" FALSE)
add_feature_info("Bash completion" WITH_COMPLETION
"completion for PDAL command line")
option(BUILD_PLUGIN_CPD
"Choose if the cpd filter should be built" FALSE)
add_feature_info("CPD plugin" BUILD_PLUGIN_CPD
"Coherent Point Drift (CPD) computes rigid or nonrigid transformations between point sets")
option(BUILD_PLUGIN_DELAUNAY
"Choose if the Delaunay triangulation filter should be built" FALSE)
add_feature_info("Delaunay plugin" BUILD_PLUGIN_DELAUNAY
"perform Delaunay triangulation of point cloud")
option(BUILD_PLUGIN_GEOWAVE
"Choose if GeoWave support should be built" FALSE)
add_feature_info("GeoWave plugin" BUILD_PLUGIN_GEOWAVE
"Read and Write data using GeoWave")
option(BUILD_PLUGIN_I3S
"Choose if I3S and SLPK support should be built" FALSE)
add_feature_info("I3S plugin" BUILD_PLUGIN_I3S
"Read from a I3S server or from a SLPK file")
option(BUILD_PLUGIN_GREYHOUND
"Choose if Greyhound support should be built" FALSE)
add_feature_info("Greyhound plugin" BUILD_PLUGIN_GREYHOUND
"read points from a Greyhound server")
option(BUILD_PLUGIN_ICEBRIDGE
"Choose if Icebridge support should be built" FALSE)
add_feature_info("Icebridge plugin" BUILD_PLUGIN_ICEBRIDGE
"read data in the Icebridge format")
option(BUILD_PLUGIN_MATLAB
"Choose if Matlab support should be built" FALSE)
add_feature_info("Matlab plugin" BUILD_PLUGIN_MATLAB
"write data to a .mat file")
option(BUILD_PLUGIN_MRSID
"Choose if MrSID/LiDAR support should be built" FALSE)
add_feature_info("MrSID plugin" BUILD_PLUGIN_MRSID
"read data in the MrSID format")
option(BUILD_PLUGIN_NITF
"Choose if NITF support should be built (only install supported is from http://github.com/hobu/nitro)" FALSE)
add_feature_info("NITF plugin" BUILD_PLUGIN_NITF
"read/write LAS data wrapped in NITF")
option(BUILD_PLUGIN_OPENSCENEGRAPH
"Choose if OpenSceneGraph support should be built" FALSE)
add_feature_info("OpenSceneGraph plugin" BUILD_PLUGIN_OPENSCENEGRAPH
"read/write OpenSceneGraph objects")
option(BUILD_PLUGIN_OCI
"Choose if OCI support should be built" FALSE)
add_feature_info("Oracle OCI plugin" BUILD_PLUGIN_OCI
"Read/write point clould patches to Oracle")
option(BUILD_PLUGIN_PCL "Choose if PCL support should be built" FALSE)
add_feature_info("PCL plugin" BUILD_PLUGIN_PCL
"provides PCL-based readers, writers, filters, and kernels")
find_package(PostgreSQL QUIET)
option(BUILD_PLUGIN_PGPOINTCLOUD
"Choose if PostgreSQL PointCloud support should be built"
${POSTGRESQL_FOUND})
add_feature_info("PostgreSQL PointCloud plugin" BUILD_PLUGIN_PGPOINTCLOUD
"read/write PostgreSQL PointCloud objects")
option(BUILD_PLUGIN_SQLITE
"Choose if SQLite database support should be built" FALSE)
add_feature_info("SQLite plugin" BUILD_PLUGIN_SQLITE
"read/write SQLite objects")
option(BUILD_PLUGIN_RIVLIB
"Choose if RiVLib support should be built" FALSE)
add_feature_info("RiVLib plugin" BUILD_PLUGIN_RIVLIB
"read data in the RXP format")
option(BUILD_PLUGIN_RDBLIB
"Choose if rdblib support should be built" FALSE)
add_feature_info("rdblib plugin" BUILD_PLUGIN_RDBLIB
"read data in the RDB format")
option(BUILD_PLUGIN_PYTHON
"Choose if Python support should be built" FALSE)
add_feature_info("Python plugin" BUILD_PLUGIN_PYTHON
"add features that depend on python")
option(BUILD_PLUGIN_MBIO
"Choose if MBIO support should be built" FALSE)
add_feature_info("MBIO plugin" BUILD_PLUGIN_MBIO
"add features that depend on MBIO")
option(BUILD_PLUGIN_FBX
"Choose if FBX support should be built" FALSE)
add_feature_info("FBX plugin" BUILD_PLUGIN_FBX
"add features that depend on FBX")
option(BUILD_TOOLS_NITFWRAP "Choose if nitfwrap tool should be built" FALSE)
option(WITH_TESTS
"Choose if PDAL unit tests should be built" TRUE)
add_feature_info("Unit tests" WITH_TESTS "PDAL unit tests")
# Enable CTest and submissions to PDAL dashboard at CDash
# http://my.cdash.org/index.php?project=PDAL
option(ENABLE_CTEST
"Enable CTest to support submissions of results to CDash at http://cdash.org" FALSE)
#
# Choose dependent options
#
include(CMakeDependentOption)
cmake_dependent_option(BUILD_PGPOINTCLOUD_TESTS
"Choose if PostgreSQL PointCloud tests should be built"
ON "BUILD_PLUGIN_PGPOINTCLOUD; WITH_TESTS" OFF)
cmake_dependent_option(BUILD_SQLITE_TESTS
"Choose if SQLite tests should be built"
ON "BUILD_PLUGIN_SQLITE; WITH_TESTS" OFF)
cmake_dependent_option(BUILD_OCI_TESTS
"Choose if OCI tests should be built"
ON "BUILD_PLUGIN_OCI; WITH_TESTS" OFF)
cmake_dependent_option(BUILD_RIVLIB_TESTS
"Choose if RiVLib tests should be built"
ON "BUILD_PLUGIN_RIVLIB; WITH_TESTS" OFF)
cmake_dependent_option(BUILD_RDBLIB_TESTS
"Choose if rdblib tests should be built"
ON "BUILD_PLUGIN_RDBLIB; WITH_TESTS" OFF)
cmake_dependent_option(BUILD_PIPELINE_TESTS
"Choose if pipeline tests should be built"
OFF "WITH_TESTS" OFF)
cmake_dependent_option(BUILD_I3S_TESTS
"Choose if I3S tests should be built"
OFF "WITH_TESTS" OFF)