From 3fac4d38c1f8a7fa9b58f47cc9a5e0689c8bb29d Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Tue, 18 Mar 2025 10:21:45 -0400 Subject: But it was a beginning --- CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b476823 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.12) +project(mmband VERSION 0.1) + +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + +add_library(${PROJECT_NAME} SHARED + ${PROJECT_NAME}/audio_player.c + ${PROJECT_NAME}/instrument.c +) + +target_include_directories(${PROJECT_NAME} PUBLIC .) +set_target_properties(${PROECT_NAME} PROPERTIES + C_STANDARD 99 + C_STANDARD_REQUIRED ON + C_EXTENSIONS OFF + COMPILE_WARNING_AS_ERROR ON +) + +add_subdirectory(vendor/portaudio) + +target_link_libraries(${PROJECT_NAME} portaudio) -- cgit v1.2.3