FIX: fixed cmakelists for usage as lib

This commit is contained in:
Henry Winkel
2022-12-19 16:29:26 +01:00
parent 8fcf4244b0
commit 5a9d5dae40
2 changed files with 16 additions and 16 deletions

View File

@@ -92,31 +92,31 @@ target_include_directories(whisper-com PUBLIC
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
src) src)
add_executable(main # add_executable(main
src/main.cpp # src/main.cpp
) # )
add_dependencies(main protoc) # add_dependencies(main protoc)
target_link_libraries(main # target_link_libraries(main
whisper-com # whisper-com
loguru # loguru
) # )
add_executable(mainRcv # add_executable(mainRcv
src/mainRecv.cpp # src/mainRecv.cpp
) # )
target_link_libraries(mainRcv # target_link_libraries(mainRcv
loguru # loguru
whisper-com # whisper-com
) # )
# #
# Everything TEST related # Everything TEST related

View File

@@ -5,7 +5,7 @@
#include "WHISPER/Messages/Leave.hpp" #include "WHISPER/Messages/Leave.hpp"
#include "WHISPER/Messages/Message.hpp" #include "WHISPER/Messages/Message.hpp"
#include "WHISPER/whisper.hpp" #include "WHISPER/whisper.hpp"
#include "zmq.hpp" #include <zmq.hpp>
#include <chrono> #include <chrono>
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>