-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (23 loc) · 996 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
cmake_minimum_required(VERSION 3.5)
project(chordola LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
set(CMAKE_CXX_FLAGS -Wall)
set(CMAKE_CXX_FLAGS -Wextra)
add_executable(chordola console/main.cpp lib/jack-backend/audiobackend.cpp lib/jack-backend/audiobackend.h lib/jack-backend/chord.h
lib/Chord-Detector-and-Chromagram/src/Chromagram.cpp
lib/Chord-Detector-and-Chromagram/src/Chromagram.h
lib/Chord-Detector-and-Chromagram/src/ChordDetector.h
lib/Chord-Detector-and-Chromagram/src/ChordDetector.cpp
lib/jack-backend/chord.cpp
lib/jack-backend/chord_listener.cpp
lib/jack-backend/chord_listener.h)
target_link_libraries(chordola -ljack)
target_link_libraries(chordola -lfftw3)
target_link_libraries(chordola -latomic)
find_package (Threads REQUIRED)
target_link_libraries(chordola
${CMAKE_THREAD_LIBS_INIT}
)
add_compile_definitions(USE_FFTW)