forked from martinus/svector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (20 loc) · 773 Bytes
/
CMakeLists.txt
File metadata and controls
22 lines (20 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.12)
project("svector"
VERSION 1.0.3
DESCRIPTION " Compact SVO optimized vector for C++17 or higher"
HOMEPAGE_URL "https://github.com/martinus/svector")
# determine whether this is a standalone project or included by other projects
set(_svector_is_included ON)
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(_svector_is_included OFF)
endif()
if(_svector_is_included)
add_library(svector INTERFACE)
add_library(svector::svector ALIAS svector)
target_compile_features(svector INTERFACE cxx_std_17)
target_include_directories(
svector
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
endif()