-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 1.49 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
cmake_minimum_required(VERSION 3.27)
include(CMakePrintHelpers)
project(cloudbuster)
set(RTMIDI_TARGETNAME_UNINSTALL "rtmidi-uninstall")
set(PFFFT_TARGETNAME_UNINSTALL "pffft-uninstall")
set(ENABLE_PRECOMPILED_HEADERS OFF)
# find_package(PkgConfig REQUIRED)
# pkg_search_module(FFTW REQUIRED fftw3 IMPORTED_TARGET)
# include_directories(PkgConfig::FFTW)
option (BUILD_PROGRAMS "Build programs" OFF)
option (BUILD_EXAMPLES "Build examples" OFF)
option (BUILD_TESTING "Build tests" OFF)
option (ENABLE_CPACK "Enable CPack support" OFF)
option(PFFFT_USE_TYPE_FLOAT "Use float precision" ON)
option(RTMIDI_BUILD_TESTING "Build test programs" OFF)
option(ENABLE_FLOAT "Enable float precision in FFTW3" ON)
add_subdirectory("${PROJECT_SOURCE_DIR}/libsamplerate")
add_subdirectory("${PROJECT_SOURCE_DIR}/libsndfile")
add_subdirectory("${PROJECT_SOURCE_DIR}/fftw-3.3.10")
add_subdirectory("${PROJECT_SOURCE_DIR}/portaudio")
add_subdirectory("${PROJECT_SOURCE_DIR}/rtmidi")
# add_subdirectory("${PROJECT_SOURCE_DIR}/matplotplusplus")
set(RTMIDI_TARGETNAME_UNINSTALL "rtmidi-uninstall" CACHE STRING "Name of 'uninstall' build target")
include_directories("${PROJECT_SOURCE_DIR}/fftw-3.3.10/api")
add_executable(${PROJECT_NAME} "main.cpp")
target_link_libraries(${PROJECT_NAME} PortAudio SndFile::sndfile samplerate rtmidi ${FFTW3_LIBRARIES} fftw3f)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17)
cmake_print_variables(FFTW3_LIBRARIES)
# set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Examples C")