-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (32 loc) · 1.09 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2024 Yannic Staudt, tipi technologies Ltd and the goldilock contributors
# SPDX-License-Identifier: GPL-2.0-only OR Proprietary
cmake_minimum_required(VERSION 3.27.6)
set(FETCHCONTENT_QUIET OFF CACHE BOOL "" FORCE)
project(goldilock
VERSION "0.0.1"
LANGUAGES CXX
)
enable_testing()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
cxxopts
GIT_REPOSITORY https://github.com/jarro2783/cxxopts.git
GIT_TAG 3bf268481da8208d171d8908e6491459de3651d7 # tag v3.2.0
)
FetchContent_MakeAvailable(cxxopts)
set(BOOST_INCLUDE_LIBRARIES system filesystem)
FetchContent_Declare(
boost
GIT_REPOSITORY https://github.com/tipi-build/boost
GIT_TAG eab5b4b199f57aee86a4dc64cf3682b970507e09 # tag boost-1.85.0
)
FetchContent_MakeAvailable(boost)
find_package(Threads)
add_library(libgoldilock-utils INTERFACE )
add_library(libgoldilock-utils::libgoldilock-utils ALIAS libgoldilock-utils)
target_include_directories(libgoldilock-utils INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)
add_subdirectory(src)