-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (32 loc) · 956 Bytes
/
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
cmake_minimum_required(VERSION 3.19)
project(reciprocal)
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)
# use sanitizers if appropriate
include(cmake/sanitizers.cmake)
# get gtest
FetchContent_Declare(
gtest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(gtest)
# get google benchmark
FetchContent_Declare(
gbenchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.6.1
)
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "" FORCE)
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(gbenchmark)
enable_testing()
add_subdirectory(core)
add_subdirectory(dagnabbit)
option(DC_EDITOR "Include the graph editor" OFF)
if (DC_EDITOR)
add_subdirectory(editor)
endif()
add_subdirectory(examples)