Use fmidi without recursive submodules and external dependencies

This commit is contained in:
Jean Pierre Cimalando 2020-04-23 00:59:42 +02:00
parent 6f39d4c830
commit 86cbb7a792
4 changed files with 9 additions and 1 deletions

3
.gitmodules vendored
View file

@ -21,3 +21,6 @@
[submodule "clients/external/fmidi"]
path = clients/external/fmidi
url = https://github.com/jpcima/fmidi.git
[submodule "clients/external/fmt"]
path = clients/external/fmt
url = https://github.com/fmtlib/fmt.git

View file

@ -10,7 +10,11 @@ sfizz_enable_lto_if_needed (sfizz_jack)
install (TARGETS sfizz_jack DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT "jack" OPTIONAL)
add_library(fmidi-fmt INTERFACE)
target_include_directories(fmidi-fmt INTERFACE "external/fmt/include")
target_compile_definitions(fmidi-fmt INTERFACE "FMT_HEADER_ONLY=1")
add_subdirectory(external/fmidi EXCLUDE_FROM_ALL)
add_executable(sfizz_render sfizz_render.cpp)
target_link_libraries(sfizz_render sfizz::sfizz fmidi)
sfizz_enable_lto_if_needed (sfizz_render)

@ -1 +1 @@
Subproject commit b7fe3a04c2c0ae7256c8e41d86d68f2fead19394
Subproject commit 46a045c7f327d827baeddd627604907fc29ef17e

1
clients/external/fmt vendored Submodule

@ -0,0 +1 @@
Subproject commit 9bdd1596cef1b57b9556f8bef32dc4a32322ef3e