From a17a7b3b0b3d6b23b50533b26fa74700fed398b9 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 23 Nov 2019 18:59:29 +0100 Subject: [PATCH] Commit all the Makefiles --- CMakeLists.txt | 12 ++++++++++++ clients/CMakeLists.txt | 10 ++++++++++ lv2/CMakeLists.txt | 6 ++++++ 3 files changed, 28 insertions(+) create mode 100644 clients/CMakeLists.txt create mode 100644 lv2/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c498d66..e5de902f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,3 +33,15 @@ add_subdirectory(external/abseil-cpp EXCLUDE_FROM_ALL) # Add the static library targets and sources add_subdirectory(src) + +if (SFIZZ_CLIENTS) +add_subdirectory(clients) +endif() + +if (SFIZZ_LV2) +add_subdirectory(lv2) +endif() + +if (SFIZZ_BENCHMARKS) +add_subdirectory(benchmarks) +endif() \ No newline at end of file diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt new file mode 100644 index 00000000..ee4e41f2 --- /dev/null +++ b/clients/CMakeLists.txt @@ -0,0 +1,10 @@ +project(sfizz) + +############################### +add_executable(sfzprint sfzprint.cpp) +target_link_libraries(sfzprint sfizz::parser absl::flags_parse) +install(TARGETS sfzprint DESTINATION . OPTIONAL) + +add_executable(sfizz_jack jack_client.cpp) +target_link_libraries(sfizz_jack sfizz::sfizz jack absl::flags_parse) +install(TARGETS sfizz_jack DESTINATION . OPTIONAL) \ No newline at end of file diff --git a/lv2/CMakeLists.txt b/lv2/CMakeLists.txt new file mode 100644 index 00000000..4d8b1dc5 --- /dev/null +++ b/lv2/CMakeLists.txt @@ -0,0 +1,6 @@ +project(sfizz) + +add_library(sfizz_lv2 SHARED sfizz.c) +set_target_properties(sfizz_lv2 PROPERTIES PREFIX "") +set_target_properties(sfizz_lv2 PROPERTIES OUTPUT_NAME "sfizz") +target_link_libraries(sfizz_lv2 sfizz::sfizz) \ No newline at end of file