tests: Make building tests optional, although with no option to toggle them on for now
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-04-28 20:02:49 +02:00
parent b34f2149ee
commit ae7c841fff
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -16,6 +16,8 @@ function(luna_test SOURCE_FILE APP_NAME SETUID)
endif() endif()
endfunction() endfunction()
if(BUILD_TESTS)
luna_test(libluna/TestVector.cpp TestVector OFF) luna_test(libluna/TestVector.cpp TestVector OFF)
luna_test(libluna/TestBase64.cpp TestBase64 OFF) luna_test(libluna/TestBase64.cpp TestBase64 OFF)
luna_test(libluna/TestUtf8.cpp TestUtf8 OFF) luna_test(libluna/TestUtf8.cpp TestUtf8 OFF)
endif()