-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (29 loc) · 983 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (29 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project(avendish LANGUAGES C CXX)
option(AVENDISH_INCLUDE_SOURCE_ONLY "Create a simple Avendish target for including headers" OFF)
# find_package look in BOOST_ROOT
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif()
# do not skip BOOST_ROOT
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
if(AVENDISH_INCLUDE_SOURCE_ONLY)
set(AVND_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(AVND_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "")
include(cmake/avendish.sources.cmake)
return()
endif()
include(cmake/avendish.cmake)
# Only build examples and tests if we are building this repo directly,
# not if it is add_subdirectory'd
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
include(avendish.examples)
target_sources(Addition
PRIVATE
include/avnd/common/no_unique_address.hpp
)
include(avendish.tests)
endif()