kraken: bootstrap build system

This commit is contained in:
Bruno BELANYI 2022-03-11 23:12:10 +01:00
commit 5cd9e11979
6 changed files with 49 additions and 0 deletions

1
tests/CMakeLists.txt Normal file
View file

@ -0,0 +1 @@
add_subdirectory(unit)

15
tests/unit/CMakeLists.txt Normal file
View file

@ -0,0 +1,15 @@
find_package(GTest)
if (${GTest_FOUND})
include(GoogleTest)
add_executable(base_test base.cc)
target_link_libraries(base_test PRIVATE common_options)
target_link_libraries(base_test PRIVATE
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(base_test)
endif (${GTest_FOUND})

5
tests/unit/base.cc Normal file
View file

@ -0,0 +1,5 @@
#include <gtest/gtest.h>
TEST(misc, passing) {
ASSERT_EQ(1, 1);
}