diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-22 21:16:02 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-22 21:19:21 +0000 |
commit | fb8197839c0bebc20fd68ee3f280da934c49c473 (patch) | |
tree | e4ccb024144cb5b41f9e572984e3278c2b0b51d0 /tests/CMakeLists.txt | |
parent | d6b25272499352383214c738faa8ce1870df37f3 (diff) | |
download | YAGE-fb8197839c0bebc20fd68ee3f280da934c49c473.tar.gz YAGE-fb8197839c0bebc20fd68ee3f280da934c49c473.zip |
Removing editor and refactoring code.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 613e0bdb..36afa574 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,30 +8,27 @@ set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) # the gtest and gtest_main targets. add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/external/googletest) -add_executable(simplegame simplegame.cpp) -target_link_libraries(simplegame yage) - # enable tests enable_testing() set(SIMULATION_RUNS 1000) function(make_test test_name cycles) - add_executable(${test_name} ${test_name}.cpp) - target_link_libraries(${test_name} + add_executable("${test_name}test" ${test_name}/test.cpp) + target_link_libraries("${test_name}test" gtest_main yage) - add_test(NAME ${test_name} COMMAND ${test_name} --gtest_repeat=${cycles} --gtest_break_on_failure) + add_test(NAME ${test_name} COMMAND "${test_name}test" --gtest_repeat=${cycles} --gtest_break_on_failure) endfunction(make_test) -make_test(yagetest 1) -make_test(matrixtest ${SIMULATION_RUNS}) -make_test(particlebodytest 100) -make_test(windowtest ${SIMULATION_RUNS}) -make_test(spritesheettest ${SIMULATION_RUNS}) -make_test(vector3test ${SIMULATION_RUNS}) -make_test(vector4test ${SIMULATION_RUNS}) -make_test(logtest 1) -make_test(threadtest 1) -make_test(syncqueuetest 1) -make_test(activetest 1) -make_test(structtest ${SIMULATION_RUNS}) +make_test(yage 1) +make_test(matrix ${SIMULATION_RUNS}) +make_test(particlebody 100) +make_test(window ${SIMULATION_RUNS}) +make_test(spritesheet ${SIMULATION_RUNS}) +make_test(vector3 ${SIMULATION_RUNS}) +make_test(vector4 ${SIMULATION_RUNS}) +make_test(log 1) +make_test(thread 1) +make_test(syncqueue 1) +make_test(active 1) +make_test(struct ${SIMULATION_RUNS}) |