From 8d0674ebddd6875c6ee580e8b2780d005dff79cc Mon Sep 17 00:00:00 2001 From: Ferry Toth Date: Sat, 7 May 2022 19:53:46 +0200 Subject: [PATCH] Install test tools Signed-off-by: Ferry Toth --- test/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index fc67a722..5f081183 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -16,13 +16,14 @@ function(add_base64_test TEST_NAME) foreach(SRC_FILE ${ARGN}) list(APPEND SRC_FILES "${SRC_FILE}") endforeach() - + add_executable(${TEST_NAME} ${SRC_FILES}) target_link_libraries(${TEST_NAME} PRIVATE base64) - + add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME} ) + install(TARGETS ${TEST_NAME} DESTINATION bin) endfunction() @@ -41,3 +42,4 @@ endif() if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_libraries(benchmark PRIVATE rt) endif() +