QGIS/external/rtree/CMakeLists.txt
Nyall Dawson da5cd52162 [pal] Bring back refined upstream version of superliminal rtree index
Turns out this index is MUCH (magnitudes) faster for use in pal. So
grab an updated version of the upstream library and place in external libs,
and use this for indices in pal.

(we should probably investigate whether this is faster for snapping and
other index use too!)
2019-12-15 10:18:47 +10:00

27 lines
672 B
CMake

# CMake version check
cmake_minimum_required(VERSION 3.10.0)
# Check build directory
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "Do not build in-source. Please remove CMakeCache.txt and the CMakeFiles/ directory. Then build out-of-source.")
endif()
# RTree project
project(RTree
VERSION 0.1.0)
# Project build options
option(RTREE_BUILD_TESTS "Build test programs" OFF)
# RTree as header only library
add_library(RTree INTERFACE)
target_include_directories(RTree
INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_compile_features(RTree
INTERFACE cxx_std_11)
# Tests
if (RTREE_BUILD_TESTS)
add_subdirectory(tests)
endif()