Skip to content

Commit

Permalink
Install test tools
Browse files Browse the repository at this point in the history
Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
  • Loading branch information
htot committed Jun 4, 2022
1 parent 2e1b02b commit 8d0674e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand All @@ -41,3 +42,4 @@ endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(benchmark PRIVATE rt)
endif()

0 comments on commit 8d0674e

Please sign in to comment.