-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (39 loc) · 1017 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
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.15.0)
include(FetchContent)
project(ha-dsp-tool-box)
add_subdirectory(external)
add_library(dsp-tool-box STATIC
include/ha/dsp_tool_box/core/types.h
include/ha/dsp_tool_box/filtering/one_pole.h
include/ha/dsp_tool_box/modulation/adsr_envelope.h
include/ha/dsp_tool_box/modulation/modulation_phase.h
source/filtering/one_pole.cpp
source/modulation/adsr_envelope.cpp
source/modulation/modulation_phase.cpp
)
target_include_directories(dsp-tool-box
PUBLIC
${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/source
)
target_compile_features(dsp-tool-box
PUBLIC
cxx_std_17
)
enable_testing()
add_executable(dsp-tool-box_test
test/adsr_envelope_test.cpp
test/modulation_test.cpp
test/one_pole_test.cpp
)
target_link_libraries(dsp-tool-box_test
PRIVATE
dsp-tool-box
gtest
gtest_main
)
add_test(NAME dsp-tool-box_test
COMMAND
dsp-tool-box_test
)