Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
48 lines
784 B
CMake
48 lines
784 B
CMake
|
|
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()
|