ADD: added libzmq and cppm AND added the libs to the CMakeLists.txt

This commit is contained in:
Henry Winkel
2022-10-22 14:44:02 +02:00
parent 1c59c6d56e
commit 8642954942
4 changed files with 47 additions and 0 deletions

View File

@@ -13,13 +13,28 @@ IF(NOT TARGET loguru)
add_subdirectory(libs/loguru EXCLUDE_FROM_ALL)
ENDIF()
IF(NOT TARGET libzmq)
set(ZMQ_BUILD_TESTS OFF CACHE INTERNAL "")
add_subdirectory(libs/libzmq)
ENDIF()
IF(NOT TARGET cppzmq)
set(CPPZMQ_BUILD_TESTS OFF CACHE INTERNAL "")
add_subdirectory(libs/cppzmq EXCLUDE_FROM_ALL)
ENDIF()
add_library(whisper-com STATIC
include/WHISPER/whisper.hpp
src/WHISPER/whisper.cpp
)
target_link_libraries(whisper-com
loguru
cppzmq
libzmq
)
target_include_directories(whisper-com PUBLIC