-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 1.11 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
38
39
cmake_minimum_required(VERSION 3.21)
project("cxxmetrics_test" CXX)
find_package(Catch2 REQUIRED)
find_package(cxxmetrics REQUIRED)
set(CMAKE_CXX_STANDARD 14)
set(SOURCES
internal/atomic_lifo_test.cpp
counter_test.cpp
ewma_test.cpp
gauge_test.cpp
meter_test.cpp
metrics_registry_test.cpp
#pool_test.cpp
publisher_tests.cpp
reservoir_test.cpp
ringbuf_test.cpp
#skiplist_test.cpp
histogram_test.cpp
timer_test.cpp
)
set(PROMETHEUS_SOURCES
prometheus_publish_test.cpp
)
add_executable(cxxmetrics_test ${SOURCES})
target_include_directories(cxxmetrics_test PUBLIC ${CONAN_INCLUDES})
target_link_libraries(cxxmetrics_test Catch2::Catch2 Catch2::Catch2WithMain cxxmetrics::cxxmetrics -pthread)
add_executable(cxxmetrics_prometheus_test ${PROMETHEUS_SOURCES})
target_include_directories(cxxmetrics_prometheus_test PUBLIC ${CONAN_INCLUDES})
target_link_libraries(cxxmetrics_prometheus_test Catch2::Catch2 Catch2::Catch2WithMain cxxmetrics::cxxmetrics)
enable_testing()
add_test(NAME cxxmetrics
COMMAND cxxmetrics_test)