| 1 |
include("${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/helpers/GdalCMakeMinimumRequired.cmake") |
| 2 |
cmake_minimum_required(VERSION ${GDAL_CMAKE_VERSION_MIN}...${GDAL_CMAKE_VERSION_MAX}) |
| 3 |
|
| 4 |
if(NOT DEFINED PROJECT_SOURCE_DIR) |
| 5 |
# Standalone plugin building |
| 6 |
project(ogr_OCI) |
| 7 |
include("${PROJECT_SOURCE_DIR}/../../../cmake/helpers/SetupStandalonePlugin.cmake" ) |
| 8 |
include(CheckDependentLibrariesOracle) |
| 9 |
standalone_driver_finalize(OGR_ENABLE_DRIVER_OCI) |
| 10 |
endif() |
| 11 |
|
| 12 |
set(SOURCE |
| 13 |
oci_utils.cpp |
| 14 |
ocitest.cpp |
| 15 |
ogrocidatasource.cpp |
| 16 |
ogrocidriver.cpp |
| 17 |
ogrocilayer.cpp |
| 18 |
ogrociloaderlayer.cpp |
| 19 |
ogrociselectlayer.cpp |
| 20 |
ogrocisession.cpp |
| 21 |
ogrocistatement.cpp |
| 22 |
ogrocistringbuf.cpp |
| 23 |
ogrocistroke.cpp |
| 24 |
ogrocitablelayer.cpp |
| 25 |
ogrociwritablelayer.cpp) |
| 26 |
|
| 27 |
add_gdal_driver(TARGET ogr_OCI |
| 28 |
SOURCES ${SOURCE} |
| 29 |
CORE_SOURCES ogrocidrivercore.cpp |
| 30 |
PLUGIN_CAPABLE NO_SHARED_SYMBOL_WITH_CORE |
| 31 |
NO_CXX_WFLAGS_EFFCXX |
| 32 |
NO_WFLAG_OLD_STYLE_CAST |
| 33 |
) |
| 34 |
if(NOT TARGET ogr_OCI) |
| 35 |
return() |
| 36 |
endif() |
| 37 |
|
| 38 |
gdal_standard_includes(ogr_OCI) |
| 39 |
gdal_target_link_libraries(ogr_OCI PRIVATE Oracle::OCI) |