aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwzy <32936898+Freed-Wu@users.noreply.github.com>2023-07-19 15:01:11 +0800
committerGitHub <noreply@github.com>2023-07-19 10:01:11 +0300
commitb1f429095328a34556c0e9a7a2fefced3db3368c (patch)
treeecb3a5fd6d15e609b58011f27ff0e1e8b123c92b /tests
parentd01bccde9f759b24449fdaa16306b406a50eb367 (diff)
cmake : install targets (#2256)
fix #2252
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1acf050..11ec6c7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,7 @@
function(llama_add_test source)
get_filename_component(TEST_TARGET ${source} NAME_WE)
add_executable(${TEST_TARGET} ${source})
+ install(TARGETS ${TEST_TARGET} RUNTIME)
target_link_libraries(${TEST_TARGET} PRIVATE llama)
add_test(NAME ${TEST_TARGET} COMMAND $<TARGET_FILE:${TEST_TARGET}> ${ARGN})
endfunction()