diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 37f3857..3accb34 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -13,9 +13,7 @@ jobs: pwd mkdir build cd build - cmake .. - cmake --build . --target=check-format - + find \( -name "*.cpp" -o -name "*.hpp" \) -not -path "./build/*" | xargs -I {} -n 1 -P 10 bash -c "clang-format -i -style=\"file:.clang-format\" {}" diff --git a/CMakeLists.txt b/CMakeLists.txt index 90b40ed..7442cbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,7 @@ if (AARE_FETCH_BOOST) GIT_TAG boost-1.80.0 ) FetchContent_MakeAvailable(Boost) + set(Boost_LIBRARIES Boost::program_options) else() find_package(Boost 1.80 REQUIRED COMPONENTS program_options) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6442f4d..12a7569 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,5 +1,5 @@ -set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;restream_example") +set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;zmq_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) diff --git a/examples/restream_example.cpp b/examples/zmq_restream_example.cpp similarity index 98% rename from examples/restream_example.cpp rename to examples/zmq_restream_example.cpp index f0f19af..07bb996 100644 --- a/examples/restream_example.cpp +++ b/examples/zmq_restream_example.cpp @@ -1,11 +1,10 @@ -#include #include #include #include "aare/file_io/File.hpp" #include "aare/network_io/ZmqSocketSender.hpp" -#include +#include using namespace aare; using namespace std;