diff options
Diffstat (limited to 'test/unit/CMakeLists.txt')
-rw-r--r-- | test/unit/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt new file mode 100644 index 0000000..f6a1d75 --- /dev/null +++ b/test/unit/CMakeLists.txt @@ -0,0 +1,24 @@ +set(SRC_DIR ${colobot_SOURCE_DIR}/src) + +include_directories( +${SRC_DIR} +${GTEST_INCLUDE_DIR} +math +common +) + +set(UT_SOURCES +main.cpp +math/geometry_test.cpp +math/matrix_test.cpp +math/vector_test.cpp +) + +add_executable(colobot_ut ${UT_SOURCES}) +target_link_libraries(colobot_ut gtest) + +add_test(colobot_ut ./colobot_ut) + +# TODO: change the unit cases to independent automated tests to be included in colobot_ut +add_subdirectory(common) +add_subdirectory(ui) |