diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 7fe27f5c0..1b5dbc3ed 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -534,3 +534,43 @@ install( TARGETS register_api_test RUNTIME DESTINATION bin ) + +# +# Request Cancellation Unittest +# +add_executable( + request_cancellation_test + request_cancellation_test.cc +) + +set_target_properties( + request_cancellation_test + PROPERTIES + SKIP_BUILD_RPATH TRUE + BUILD_WITH_INSTALL_RPATH TRUE + INSTALL_RPATH_USE_LINK_PATH FALSE + INSTALL_RPATH "" +) + +target_include_directories( + request_cancellation_test + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../../include + ${GTEST_INCLUDE_DIRS} +) + +target_link_libraries( + request_cancellation_test + PRIVATE + triton-common-error # from repo-common + triton-common-logging # from repo-common + triton-core + GTest::gtest + GTest::gtest_main +) + +install( + TARGETS request_cancellation_test + RUNTIME DESTINATION bin +)