kraken: bootstrap build system
This commit is contained in:
commit
5cd9e11979
6 changed files with 49 additions and 0 deletions
1
tests/CMakeLists.txt
Normal file
1
tests/CMakeLists.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_subdirectory(unit)
|
||||
15
tests/unit/CMakeLists.txt
Normal file
15
tests/unit/CMakeLists.txt
Normal 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
5
tests/unit/base.cc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(misc, passing) {
|
||||
ASSERT_EQ(1, 1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue