Implement ctest unit test, first test simply testing that envelope works as it used to.

This commit is contained in:
Veikko Sariola
2020-04-12 21:55:28 +03:00
parent e180694d9e
commit 8d984cbc38
5 changed files with 742 additions and 0 deletions

View File

@ -35,3 +35,9 @@ add_subdirectory(src)
# We should put examples here
# add_subdirectory(examples)
# Testing only available if this is the main app
# Emergency override 4KLANG_CMAKE_BUILD_TESTING provided as well
if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR 4KLANG_CMAKE_BUILD_TESTING) AND BUILD_TESTING)
add_subdirectory(tests)
endif()