diff options
author | Francesco Borzì <borzifrancesco@gmail.com> | 2020-08-15 22:34:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 22:34:45 +0200 |
commit | c2b40b126d669e66fd5f602c03c42924da41d776 (patch) | |
tree | fd6c7b0f94feed4941c2b8d5d294dad17141352e /src/test/CMakeLists.txt | |
parent | 4d11f5c92139f26483763b2f558da4b5a6fcae6e (diff) |
feature(testing-automation): unit tests with Google Framework (#3273)
Diffstat (limited to 'src/test/CMakeLists.txt')
-rw-r--r-- | src/test/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt new file mode 100644 index 0000000000..8ecff19c28 --- /dev/null +++ b/src/test/CMakeLists.txt @@ -0,0 +1,23 @@ +CollectSourceFiles( + ${CMAKE_CURRENT_SOURCE_DIR} + PRIVATE_SOURCES +) + +add_executable( + unit_tests + ${PRIVATE_SOURCES} +) + +target_link_libraries( + unit_tests + gtest_main + game + game-interface +) + +add_test( + NAME + unit + COMMAND + ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/unit_tests +) |