-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (23 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.12)
project(kafkaopmon VERSION 3.0.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(opmonlib REQUIRED)
find_package(RdKafka REQUIRED)
find_package(ers REQUIRED)
find_package(Boost COMPONENTS unit_test_framework program_options REQUIRED)
daq_add_library(*.cpp LINK_LIBRARIES ${Boost_LIBRARIES} opmonlib::opmonlib RdKafka::rdkafka RdKafka::rdkafka++)
##############################################################################
# Plugins
daq_add_plugin(streamOpMonFacility duneOpMonFacility LINK_LIBRARIES kafkaopmon)
##############################################################################
# No integration tests written
##############################################################################
# unit tests
daq_add_unit_test( OpMonPublisher_test LINK_LIBRARIES kafkaopmon )
daq_add_unit_test( stream_OpMonFacility_test LINK_LIBRARIES kafkaopmon )
##############################################################################
# test application
daq_add_application( opmon_publisher_test opmon_publisher_test.cxx TEST LINK_LIBRARIES kafkaopmon )
daq_add_application( opmon_publish_to_kafka_test opmon_publish_to_kafka_test.cxx TEST LINK_LIBRARIES kafkaopmon )
daq_install()