mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add fmtlib as submodule
This commit is contained in:
parent
ea3eb34a88
commit
13a9fcd10b
5 changed files with 7 additions and 0 deletions
3
common/.gitmodules
vendored
3
common/.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
|||
[submodule "thirdparty/spdlog"]
|
||||
path = thirdparty/spdlog
|
||||
url = https://github.com/gabime/spdlog.git
|
||||
[submodule "thirdparty/fmtlib"]
|
||||
path = thirdparty/fmtlib
|
||||
url = https://github.com/fmtlib/fmt.git
|
||||
|
|
|
@ -61,6 +61,7 @@ set(SPDLOG_BUILD_EXAMPLES OFF)
|
|||
set(SPDLOG_BUILD_TESTING OFF)
|
||||
set(SPDLOG_BUILD_BENCH OFF)
|
||||
add_subdirectory(thirdparty/spdlog)
|
||||
add_subdirectory(thirdparty/fmtlib)
|
||||
|
||||
pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7)
|
||||
pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info ", "warn ", "error", "crit ", "off " }
|
||||
#define SPDLOG_NAME_WIDTH 17
|
||||
#define SPDLOG_FMT_EXTERNAL
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/sinks/stdout_color_sinks.h>
|
||||
|
|
|
@ -67,6 +67,7 @@ target_link_libraries(villas-common PUBLIC
|
|||
${CURL_LIBRARIES}
|
||||
${CMAKE_DL_LIBS}
|
||||
spdlog
|
||||
fmt
|
||||
)
|
||||
|
||||
target_compile_definitions(villas-common PUBLIC
|
||||
|
|
1
common/thirdparty/fmtlib
vendored
Submodule
1
common/thirdparty/fmtlib
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c2ce7e4f07f7b34b2c7bbd0a4d0798b1d7007f4f
|
Loading…
Add table
Reference in a new issue