forked from klang-modular/synthapp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
741 B
26 lines
741 B
cmake_minimum_required(VERSION 3.25)
|
|
project(synthapp)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g -ffast-math")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast -DNDEBUG")
|
|
|
|
add_subdirectory(lib/tomlplusplus)
|
|
add_subdirectory(lib/portaudio)
|
|
add_subdirectory(lib/portmidi)
|
|
add_subdirectory(lib/synth)
|
|
|
|
add_executable(main
|
|
src/synthapp.cpp)
|
|
target_include_directories(main PRIVATE include)
|
|
target_link_libraries(main PRIVATE synth)
|
|
|
|
target_link_libraries(main PRIVATE tomlplusplus_tomlplusplus)
|
|
|
|
target_link_libraries(main PRIVATE PortAudio)
|
|
target_link_libraries(main PRIVATE portmidi)
|
|
target_include_directories(main PRIVATE lib/portmidi/porttime)
|
|
|
|
add_custom_target(synthapp)
|
|
add_dependencies(synthapp main)
|
|
|