Commit all the Makefiles

This commit is contained in:
Paul Ferrand 2019-11-23 18:59:29 +01:00
parent 5edca806c7
commit a17a7b3b0b
3 changed files with 28 additions and 0 deletions

View file

@ -33,3 +33,15 @@ add_subdirectory(external/abseil-cpp EXCLUDE_FROM_ALL)
# Add the static library targets and sources # Add the static library targets and sources
add_subdirectory(src) add_subdirectory(src)
if (SFIZZ_CLIENTS)
add_subdirectory(clients)
endif()
if (SFIZZ_LV2)
add_subdirectory(lv2)
endif()
if (SFIZZ_BENCHMARKS)
add_subdirectory(benchmarks)
endif()

10
clients/CMakeLists.txt Normal file
View file

@ -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)

6
lv2/CMakeLists.txt Normal file
View file

@ -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)