From b6d92bf85522daec5c4b18238f5e505bc20ef80a Mon Sep 17 00:00:00 2001 From: Tim Schoof <tim.schoof@desy.de> Date: Fri, 7 Feb 2020 10:59:22 +0100 Subject: [PATCH] Make building event monitor producer optional --- CMakeLists.txt | 1 + deploy/build_env/Centos7.7/build.sh | 7 ++++++- deploy/build_env/Ubuntu16.04/build.sh | 7 ++++++- producer/CMakeLists.txt | 4 +++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05d3437c6..e24c017ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,7 @@ option(BUILD_TESTS "Uses googletest to build tests" OFF) option(BUILD_INTEGRATION_TESTS "Include integration tests (CMAKE >3.7 is needed)" OFF) option(BUILD_CPP_DOCS "Uses doxygen to build the C++ documentaion" OFF) option(BUILD_BROKER "Build broker" OFF) +option(BUILD_EVENT_MONITOR_PRODUCER "Build the event monitor producer" OFF) option(BUILD_PYTHON_DOCS "Uses sphinx to build the Python documentaion" OFF) option(BUILD_CONSUMER_TOOLS "Build consumer tools" OFF) diff --git a/deploy/build_env/Centos7.7/build.sh b/deploy/build_env/Centos7.7/build.sh index 40318cb21..b902e0e67 100755 --- a/deploy/build_env/Centos7.7/build.sh +++ b/deploy/build_env/Centos7.7/build.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash cd /asapo/build -cmake -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DBUILD_PYTHON_DOCS=ON .. +cmake \ + -DCMAKE_BUILD_TYPE="Release" \ + -DLIBCURL_DIR=/curl \ + -DBUILD_PYTHON_DOCS=ON \ + -DBUILD_EVENT_MONITOR_PRODUCER=ON \ + .. cd consumer && make cd ../producer && make cd ../sphinx && make diff --git a/deploy/build_env/Ubuntu16.04/build.sh b/deploy/build_env/Ubuntu16.04/build.sh index d399e3811..cd34659e4 100755 --- a/deploy/build_env/Ubuntu16.04/build.sh +++ b/deploy/build_env/Ubuntu16.04/build.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash cd /asapo/build -cmake -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DBUILD_PYTHON_DOCS=ON .. +cmake \ + -DCMAKE_BUILD_TYPE="Release" \ + -DLIBCURL_DIR=/curl \ + -DBUILD_PYTHON_DOCS=ON \ + -DBUILD_EVENT_MONITOR_PRODUCER=ON \ + .. cd consumer && make cd ../producer && make cd ../docs/sphinx && make diff --git a/producer/CMakeLists.txt b/producer/CMakeLists.txt index 62ecdca0c..3c8560c15 100644 --- a/producer/CMakeLists.txt +++ b/producer/CMakeLists.txt @@ -1,4 +1,6 @@ add_subdirectory(api/cpp) add_subdirectory(api/python) -add_subdirectory(event_monitor_producer) +if(BUILD_EVENT_MONITOR_PRODUCER) + add_subdirectory(event_monitor_producer) +endif(BUILD_EVENT_MONITOR_PRODUCER) -- GitLab