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)