Debian Codegraph @

third_party/hat-trie/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.1)
2
3 project(tsl_hat_trie)
4
5 add_library(tsl_hat_trie INTERFACE)
6 # Use tsl::hat_trie as target, more consistent with other libraries conventions (Boost, Qt, ...)
7 add_library(tsl::hat_trie ALIAS tsl_hat_trie)
8
9 target_include_directories(tsl_hat_trie INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
10 target_sources(tsl_hat_trie INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_growth_policy.h"
11 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_hash.h"
12 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_map.h"
13 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_set.h"
14 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_hash.h"
15 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_map.h"
16 "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_set.h")
17
18
19 if(${CMAKE_VERSION} VERSION_GREATER "3.7")
20 # Only available since version 3.8
21 target_compile_features(tsl_hat_trie INTERFACE cxx_std_11)
22 endif()