mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-11 06:47:14 +02:00
add boost library
This commit is contained in:
@ -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}")
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user