-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (40 loc) · 1 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
47
cmake_minimum_required(VERSION 3.11)
project(sosso VERSION 0.1.0)
# Build settings.
include(Build.cmake)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED 20)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${BUILD_COMPILER_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${BUILD_COMPILER_FLAGS}")
find_package(Threads REQUIRED)
find_package(spdlog REQUIRED)
message("spdlog config found at ${spdlog_CONFIG}")
# Headers.
set(sosso_Headers
sosso/Buffer.hpp
sosso/Channel.hpp
sosso/Correction.hpp
sosso/Device.hpp
sosso/DoubleBuffer.hpp
sosso/FrameClock.hpp
sosso/Logging.hpp
sosso/ReadChannel.hpp
sosso/WriteChannel.hpp
)
# Sources.
set(sosso_Sources
main.cpp
TestRun.hpp
)
# Executable
add_executable(sosso
${sosso_Headers}
${sosso_Sources}
)
target_include_directories(sosso PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
set_target_properties(sosso PROPERTIES OUTPUT_NAME "sosso_test")
target_link_libraries(sosso
PRIVATE Threads::Threads
spdlog::spdlog_header_only
execinfo
)