ADD: enable json library

This commit is contained in:
Dominik Meyer 2021-08-26 21:43:38 +02:00
parent 5a53d5c2cd
commit 138c0b093f
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -19,6 +19,11 @@ IF(NOT TARGET loguru)
set_property(TARGET loguru PROPERTY POSITION_INDEPENDENT_CODE 1)
ENDIF()
IF(NOT TARGET nlohmann_json::nlohmann_json)
set(JSON_BuildTests OFF CACHE INTERNAL "")
add_subdirectory(libs/json EXCLUDE_FROM_ALL)
ENDIF()
set(WHISPER_SOURCES
include/Whisper/Data/Classification.hpp
@ -26,7 +31,7 @@ set(WHISPER_SOURCES
include/Whisper/Tree/Node.hpp
)
set(WHISPER_REQUIRED_LIBRARIES loguru)
set(WHISPER_REQUIRED_LIBRARIES loguru nlohmann_json::nlohmann_json )
add_library(objlib OBJECT ${WHISPER_SOURCES})
set_property(TARGET objlib PROPERTY POSITION_INDEPENDENT_CODE 1)