mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 01:20:17 +00:00
Add custom targets in CMakeLists to run unit-tests.
This commit is contained in:
parent
e8eeb97da9
commit
eb056ab358
@ -290,4 +290,12 @@ foreach(testsourcefile ${tests})
|
||||
# Add gtest include directory so we can #include <gtest/gtest.h> in tests source code
|
||||
set_target_properties(${testname} PROPERTIES
|
||||
COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/third_party/gtest/include")
|
||||
|
||||
add_custom_target(run_${testname}
|
||||
COMMAND ${testname})
|
||||
|
||||
set(all_runs ${all_runs} run_${testname})
|
||||
endforeach()
|
||||
|
||||
# To run tests
|
||||
add_custom_target(run_all_unittests DEPENDS ${all_runs})
|
||||
|
Loading…
x
Reference in New Issue
Block a user