forked from Research/WhisperCom
ADD: enable json library
This commit is contained in:
parent
5a53d5c2cd
commit
138c0b093f
@ -19,6 +19,11 @@ IF(NOT TARGET loguru)
|
|||||||
set_property(TARGET loguru PROPERTY POSITION_INDEPENDENT_CODE 1)
|
set_property(TARGET loguru PROPERTY POSITION_INDEPENDENT_CODE 1)
|
||||||
ENDIF()
|
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
|
set(WHISPER_SOURCES
|
||||||
include/Whisper/Data/Classification.hpp
|
include/Whisper/Data/Classification.hpp
|
||||||
@ -26,7 +31,7 @@ set(WHISPER_SOURCES
|
|||||||
include/Whisper/Tree/Node.hpp
|
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})
|
add_library(objlib OBJECT ${WHISPER_SOURCES})
|
||||||
set_property(TARGET objlib PROPERTY POSITION_INDEPENDENT_CODE 1)
|
set_property(TARGET objlib PROPERTY POSITION_INDEPENDENT_CODE 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user