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 40 41 42 43 44 45 46 47
|
add_executable(sample_server
sample_server.cc
)
target_link_libraries(sample_server
PRIVATE
${PROJECT_NAME}::pull
)
add_executable(sample_server_multi
sample_server_multi.cc
)
target_link_libraries(sample_server_multi
PRIVATE
${PROJECT_NAME}::pull
)
add_executable(sample_server_auth
sample_server_auth.cc
)
target_link_libraries(sample_server_auth
PRIVATE
${PROJECT_NAME}::pull
)
find_package(CURL)
if(CURL_FOUND)
add_executable(prometheus_pull_integration_test
integration_test.cc
)
target_link_libraries(prometheus_pull_integration_test
PRIVATE
${PROJECT_NAME}::pull
CURL::libcurl
GTest::gmock_main
)
add_test(
NAME prometheus_pull_integration_test
COMMAND prometheus_pull_integration_test
)
endif()
|