Added log4cxx dependency
This commit is contained in:
parent
ab9ee2e493
commit
c6d380b2c6
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "external/log4cxx"]
|
||||||
|
path = external/log4cxx
|
||||||
|
url = https://github.com/apache/logging-log4cxx.git
|
||||||
@ -6,12 +6,16 @@ set(CMAKE_CXX_STANDARD 17)
|
|||||||
add_subdirectory(fluidsynth)
|
add_subdirectory(fluidsynth)
|
||||||
add_subdirectory(magic_enum)
|
add_subdirectory(magic_enum)
|
||||||
add_subdirectory(argparse)
|
add_subdirectory(argparse)
|
||||||
|
add_subdirectory(external/log4cxx)
|
||||||
|
|
||||||
file(GLOB_RECURSE sources src/*.cpp src/*.h)
|
file(GLOB_RECURSE sources src/*.cpp src/*.h)
|
||||||
file(GLOB_RECURSE data resources/*)
|
file(GLOB_RECURSE data resources/*)
|
||||||
|
|
||||||
add_executable(tone-generator ${sources} ${data})
|
add_executable(tone-generator ${sources} ${data})
|
||||||
|
|
||||||
|
target_include_directories(tone-generator PRIVATE $<TARGET_PROPERTY:log4cxx,INTERFACE_INCLUDE_DIRECTORIES>)
|
||||||
|
|
||||||
|
target_link_libraries(tone-generator PRIVATE log4cxx)
|
||||||
target_link_libraries(tone-generator PRIVATE libfluidsynth)
|
target_link_libraries(tone-generator PRIVATE libfluidsynth)
|
||||||
target_link_libraries(tone-generator PRIVATE magic_enum::magic_enum)
|
target_link_libraries(tone-generator PRIVATE magic_enum::magic_enum)
|
||||||
target_link_libraries(tone-generator PRIVATE argparse)
|
target_link_libraries(tone-generator PRIVATE argparse)
|
||||||
@ -21,13 +21,19 @@ make tone-generator
|
|||||||
- AB-CD and CD-AB are valid.
|
- AB-CD and CD-AB are valid.
|
||||||
- AA-CD and BA-CD are not valid.
|
- AA-CD and BA-CD are not valid.
|
||||||
|
|
||||||
## Build with system packages?
|
## System packages
|
||||||
Requires the following packages (debian)
|
Requires the following packages (debian)
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install libfluidsynth2 libfluidsynth-dev
|
sudo apt install libfluidsynth2 libfluidsynth-dev
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
liblog4cxx-dev/focal 0.10.0-15ubuntu2 amd64
|
||||||
|
Logging library for C++ (development files)
|
||||||
|
|
||||||
|
liblog4cxx-doc/focal,focal 0.10.0-15ubuntu2 all
|
||||||
|
Documentation for log4cxx
|
||||||
|
```
|
||||||
|
|
||||||
May also need some soundfonts from:
|
May also need some soundfonts from:
|
||||||
|
|
||||||
|
|||||||
1
external/log4cxx
vendored
Submodule
1
external/log4cxx
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5354f9cb739c348c05ae9938ebaded843f78fd78
|
||||||
Loading…
Reference in New Issue
Block a user