-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
170 lines (137 loc) · 6.8 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
project(ossim-plugins)
MESSAGE("**********************Setting up ossimplugins********************")
if(NOT APPLE)
cmake_minimum_required(VERSION 2.6)
else(NOT APPLE)
cmake_minimum_required(VERSION 2.8)
endif(NOT APPLE)
include(OssimVersion)
include(OssimCommonVariables)
include(OssimUtilities)
############################### OVERRIDE THE DEFAULTS TO APPend THE PLUGIN INFORMATION###################
OPTION(OSSIM_INSTALL_PLUGINS_WITH_VERSION "Set to ON to build OSSIM's plugins to install with a version prefix like ossim-<version>/plugins. Use OFF to not add a version and make it ossim/plugins." OFF)
OPTION(BUILD_ATP_PLUGIN "Set to ON to build OSSIM's atp plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_AWS_PLUGIN "Set to ON to build OSSIM's aws plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_CNES_PLUGIN "Set to ON to build OSSIM's CNES that depend only on ossim. Use OFF to skip this plugin." OFF)
OPTION(BUILD_DEM_PLUGIN "Set to ON to build OSSIM's DEM that depend only on ossim. Use OFF to skip this plugin." OFF)
OPTION(BUILD_FFTW3_PLUGIN "Set to ON to build OSSIM's fftw3 plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_GDAL_PLUGIN "Set to ON to build OSSIM's gdal plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_GEOPDF_PLUGIN "Set to ON to build OSSIM's geopdf plugin. Use OFF to skip this plugin." OFF)
#OPTION(BUILD_HDF5_PLUGIN "Set to ON to build OSSIM's hdf5 plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_JPEG12_PLUGIN "Set to ON to build OSSIM's jpeg12 plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_KAKADU_PLUGIN "Set to ON to build OSSIM's kakadu plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_KML_PLUGIN "Set to ON to build OSSIM's kml super overvlay plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_MRSID_PLUGIN "Set to ON to build OSSIM's mrsid plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_MSP_PLUGIN "Set to ON to build OSSIM's MSP plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_OPENCV_PLUGIN "Set to ON to build OSSIM's opencv plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_OPENJPEG_PLUGIN "Set to ON to build OSSIM's openjpeg plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_PDAL_PLUGIN "Set to ON to build OSSIM's pdal plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_PNG_PLUGIN "Set to ON to build OSSIM's png plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_POTRACE_PLUGIN "Set to ON to build OSSIM's potrace plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_REG_PLUGIN "Set to ON to build OSSIM's registration plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_SQLITE_PLUGIN "Set to ON to build OSSIM's sqlite plugin. Use OFF to skip this plugin." OFF)
OPTION(BUILD_WEB_PLUGIN "Set to ON to build OSSIM's web plugin. Use OFF to skip this plugin." OFF)
find_package(ossim)
if(OSSIM_INSTALL_PLUGINS_WITH_VERSION)
SET(INSTALL_RUNTIME_DIR "${INSTALL_LIBRARY_DIR}/ossim-${OSSIM_VERSION}/plugins")
else()
SET(INSTALL_RUNTIME_DIR "${INSTALL_LIBRARY_DIR}/ossim/plugins")
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${OSSIM_INCLUDE_DIR})
SET(BUILD_OSSIM_FRAMEWORKS "OFF")
SET(OSSIM_PLUGIN_LINK_TYPE "SHARED")
MESSAGE( STATUS "BUILD_ATP_PLUGIN = ${BUILD_ATP_PLUGIN}" )
MESSAGE( STATUS "BUILD_AWS_PLUGIN = ${BUILD_AWS_PLUGIN}" )
MESSAGE( STATUS "BUILD_CNES_PLUGIN = ${BUILD_CNES_PLUGIN}" )
MESSAGE( STATUS "BUILD_DEM_PLUGIN = ${BUILD_DEM_PLUGIN}" )
MESSAGE( STATUS "BUILD_FFTW3_PLUGIN = ${BUILD_FFTW3_PLUGIN}" )
MESSAGE( STATUS "BUILD_GDAL_PLUGIN = ${BUILD_GDAL_PLUGIN}" )
MESSAGE( STATUS "BUILD_GEOPDF_PLUGIN = ${BUILD_GEOPDF_PLUGIN}" )
#MESSAGE( STATUS "BUILD_HDF5_PLUGIN = ${BUILD_HDF5_PLUGIN}" )
MESSAGE( STATUS "BUILD_JPEG12_PLUGIN = ${BUILD_JPEG12_PLUGIN}" )
MESSAGE( STATUS "BUILD_KAKADU_PLUGIN = ${BUILD_KAKADU_PLUGIN}" )
MESSAGE( STATUS "BUILD_KML_PLUGIN = ${BUILD_KML_PLUGIN}" )
MESSAGE( STATUS "BUILD_MRSID_PLUGIN = ${BUILD_MRSID_PLUGIN}" )
MESSAGE( STATUS "BUILD_OPENCV_PLUGIN = ${BUILD_OPENCV_PLUGIN}" )
MESSAGE( STATUS "BUILD_OPENJPEG_PLUGIN = ${BUILD_OPENJPEG_PLUGIN}" )
MESSAGE( STATUS "BUILD_PDAL_PLUGIN = ${BUILD_PDAL_PLUGIN}" )
MESSAGE( STATUS "BUILD_PNG_PLUGIN = ${BUILD_PNG_PLUGIN}" )
MESSAGE( STATUS "BUILD_POTRACE_PLUGIN = ${BUILD_POTRACE_PLUGIN}" )
MESSAGE( STATUS "BUILD_REG_PLUGIN = ${BUILD_REG_PLUGIN}" )
MESSAGE( STATUS "BUILD_SQLITE_PLUGIN = ${BUILD_SQLITE_PLUGIN}" )
MESSAGE( STATUS "BUILD_WEB_PLUGIN = ${BUILD_WEB_PLUGIN}" )
MESSAGE( STATUS "OSSIM_LIBRARY = ${OSSIM_LIBRARY}" )
MESSAGE( STATUS "OSSIM_INCLUDE = ${OSSIM_INCLUDE_DIR}" )
MESSAGE( STATUS "OSSIM_INSTALL_PLUGINS_WITH_VERSION = ${OSSIM_INSTALL_PLUGINS_WITH_VERSION}" )
if(BUILD_ATP_PLUGIN)
add_subdirectory(atp)
endif(BUILD_ATP_PLUGIN)
if(BUILD_AWS_PLUGIN)
add_subdirectory(aws)
endif(BUILD_AWS_PLUGIN)
if(BUILD_CNES_PLUGIN)
add_subdirectory(cnes)
endif(BUILD_CNES_PLUGIN)
if(BUILD_DEM_PLUGIN)
add_subdirectory(dem)
endif(BUILD_DEM_PLUGIN)
if(BUILD_FFTW3_PLUGIN)
add_subdirectory(fftw3)
endif(BUILD_FFTW3_PLUGIN)
if(BUILD_GDAL_PLUGIN)
add_subdirectory(gdal)
endif(BUILD_GDAL_PLUGIN)
if(BUILD_GEOPDF_PLUGIN)
add_subdirectory(geopdf)
endif(BUILD_GEOPDF_PLUGIN)
#if(BUILD_HDF5_PLUGIN)
# add_subdirectory(hdf5)
#endif(BUILD_HDF5_PLUGIN)
if(BUILD_JPEG12_PLUGIN)
add_subdirectory(jpeg12)
endif(BUILD_JPEG12_PLUGIN)
if(BUILD_KAKADU_PLUGIN)
add_subdirectory(kakadu)
endif(BUILD_KAKADU_PLUGIN)
if(BUILD_KML_PLUGIN)
add_subdirectory(kml)
endif(BUILD_KML_PLUGIN)
if(BUILD_MRSID_PLUGIN)
add_subdirectory(mrsid)
endif(BUILD_MRSID_PLUGIN)
#if(BUILD_NDF_PLUGIN)
# add_subdirectory(ndf)
#endif(BUILD_NDF_PLUGIN)
if(BUILD_OPENCV_PLUGIN)
add_subdirectory(opencv)
endif(BUILD_OPENCV_PLUGIN)
if(BUILD_OPENJPEG_PLUGIN)
add_subdirectory(openjpeg)
endif(BUILD_OPENJPEG_PLUGIN)
if(BUILD_PDAL_PLUGIN)
add_subdirectory(pdal)
endif(BUILD_PDAL_PLUGIN)
if(BUILD_PNG_PLUGIN)
add_subdirectory(png)
endif(BUILD_PNG_PLUGIN)
if(BUILD_POTRACE_PLUGIN)
add_subdirectory(potrace)
endif(BUILD_POTRACE_PLUGIN)
if(BUILD_REG_PLUGIN)
add_subdirectory(reg)
endif(BUILD_REG_PLUGIN)
if(BUILD_SQLITE_PLUGIN)
add_subdirectory(sqlite)
endif(BUILD_SQLITE_PLUGIN)
if(BUILD_WEB_PLUGIN)
add_subdirectory(web)
endif(BUILD_WEB_PLUGIN)
if(OSSIM_BUILD_ADDITIONAL_PLUGIN_DIRECTORIES)
FOREACH(it IN LISTS OSSIM_BUILD_ADDITIONAL_PLUGIN_DIRECTORIES)
SUBDIRS(${it})
endFOREACH(it)
else(OSSIM_BUILD_ADDITIONAL_PLUGIN_DIRECTORIES)
SET(OSSIM_BUILD_ADDITIONAL_PLUGIN_DIRECTORIES "" CACHE PATH "Specify full paths separated by ; to additional plugins you wish to include into the ossim build framework" FORCE)
endif()
OSSIM_ADD_COMMON_MAKE_UNINSTALL()