ADD: added libzmq and cppm AND added the libs to the CMakeLists.txt
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
build
|
||||
.cache
|
||||
@@ -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
|
||||
|
||||
@@ -10,10 +10,22 @@
|
||||
* @copyright 2022 MPLv2
|
||||
*/
|
||||
|
||||
#define ZMQ_BUILD_DRAFT_API 1
|
||||
#include <zmq.hpp>
|
||||
|
||||
/**
|
||||
* @brief namespace for all whisper-com related components
|
||||
*/
|
||||
namespace WHISPER
|
||||
{
|
||||
// Add datatypes here
|
||||
class whispercomm{
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace WHISPER
|
||||
19
src/WHISPER/whisper.cpp
Normal file
19
src/WHISPER/whisper.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @copyright 2022 MPLv2
|
||||
*/
|
||||
|
||||
#include <WHISPER/whisper.hpp>
|
||||
/**
|
||||
* @brief namespace for all whisper-com related components
|
||||
*/
|
||||
namespace WHISPER
|
||||
{
|
||||
// Add datatypes here
|
||||
} // namespace WHISPER
|
||||
Reference in New Issue
Block a user