mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-07-04 15:23:41 +02:00
tests/CMakeLists.txt: Define test function.
This commit is contained in:
parent
8ec58c385f
commit
47689bc621
1 changed files with 11 additions and 0 deletions
|
|
@ -1,2 +1,13 @@
|
||||||
|
|
||||||
|
function(test name)
|
||||||
|
add_executable(${name}_test ${name}.cpp)
|
||||||
|
target_link_libraries(${name}_test PRIVATE ${LIB_NAME})
|
||||||
|
|
||||||
|
# define tests
|
||||||
|
add_test(
|
||||||
|
NAME ${name}_test
|
||||||
|
COMMAND $<TARGET_FILE:${name}_test>
|
||||||
|
)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
add_subdirectory( base58 )
|
add_subdirectory( base58 )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue