forked from Tessil/hat-trie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
22 lines (17 loc) · 1.16 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
cmake_minimum_required(VERSION 3.1)
project(tsl_hat_trie)
add_library(tsl_hat_trie INTERFACE)
# Use tsl::hat_trie as target, more consistent with other libraries conventions (Boost, Qt, ...)
add_library(tsl::hat_trie ALIAS tsl_hat_trie)
target_include_directories(tsl_hat_trie INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_sources(tsl_hat_trie INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_growth_policy.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_hash.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_map.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/array-hash/array_set.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_hash.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_map.h"
"${CMAKE_CURRENT_SOURCE_DIR}/include/tsl/htrie_set.h")
if(${CMAKE_VERSION} VERSION_GREATER "3.7")
# Only available since version 3.8
target_compile_features(tsl_hat_trie INTERFACE cxx_std_11)
endif()