Add testing

This commit is contained in:
MaxanRus 2021-12-27 16:53:28 +03:00
parent 88ca215573
commit c33b2eee86
9 changed files with 109 additions and 6 deletions

View file

@ -26,6 +26,14 @@ set(TEST_FILES
add_executable(OMGL src/main.cpp ${SOURCE_FILES})
# add_executable(Test tests/MainTest.cpp ${TEST_FILES} ${SOURCE_FILES})
add_executable(Test tests/MainTest.cpp ${TEST_FILES} ${SOURCE_FILES})
# target_link_libraries(Test ${GTEST_LIBRARIES} Threads::Threads)
target_link_libraries(Test ${GTEST_LIBRARIES} Threads::Threads)
add_custom_target(copy-files ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/tests/programs/
${CMAKE_BINARY_DIR}/programs
)
add_dependencies(Test copy-files)