This commit is contained in:
Timur A. Fatkhullin
2024-06-09 15:39:00 +03:00
parent 346a5e6965
commit a482a8dbc8
4 changed files with 359 additions and 40 deletions

View File

@@ -28,8 +28,22 @@ set(ADC_NETWORK_HEADERS
net/adc_netproto.h
net/adc_netservice.h
net/adc_endpoint.h
net/adc_netserver.h
)
option(SPDLOG_LIBRARY "Use SPDLOG library for logging" ON)
if (SPDLOG_LIBRARY)
find_package(spdlog REQUIRED)
set(ADC_NETWORK_HEADERS ${ADC_NETWORK_HEADERS}
net/adc_netserver_spdlog.h
)
add_compile_definitions(PUBLIC USE_SPDLOG_LIBRARY)
endif()
option(BUILD_TESTS "Build tests" ON)
if (BUILD_TESTS)