diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 05feb40..3058887 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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 $ + ) +endfunction() + add_subdirectory( base58 )