From 138c0b093fb8b2db870ba2718a643b7700d8bb21 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Thu, 26 Aug 2021 21:43:38 +0200 Subject: [PATCH] ADD: enable json library --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e56197a..75bf0a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)