add boost library

This commit is contained in:
Bechir Braham
2024-04-09 15:45:01 +02:00
parent a48820059d
commit 59b04ad6e8
4 changed files with 48 additions and 11 deletions

View File

@ -1,14 +1,13 @@
set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;")
set(EXAMPLE_LIST "${EXAMPLE_LIST};mythen_example;numpy_write_example;zmq_receiver_example;zmq_sender_example;")
set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;restream_example")
set(EXAMPLE_LIST "${EXAMPLE_LIST};mythen_example;numpy_write_example;zmq_receiver_example;zmq_sender_example;")
foreach(example ${EXAMPLE_LIST})
add_executable(${example} ${example}.cpp)
target_link_libraries(${example} PUBLIC aare PRIVATE aare_compiler_flags)
endforeach()
message(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")

View File

@ -1,10 +1,26 @@
#include <iostream>
#include <string>
#include <filesystem>
#include <vector>
#include <memory>
#include <boost/program_options.hpp>
#include "aare/network_io/ZmqSocketSender.hpp"
#include "aare/
#include <boost/program_options/options_description.hpp>
using namespace aare;
using namespace std;
namespace po = boost::program_options;
int main(){
int main(int argc, char **argv) {
po::options_description desc("Allowed options");
desc.add_options()
("help", "produce help message")
// ("input,i", po::value<string>(), "input file");
("port,p", po::value<int>(), "port number");
// ("loop,l", "loop over the file");
// po::positional_options_description pd;
// pd.add("input,i", 1);
}