mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
gtest: Added custom target for all unit tests
Create a target which depends on all unit test executables for ease of building/running. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
f907ebcf2e
commit
7254d5f75e
@ -17,3 +17,11 @@ add_executable(json_tests json/json_tests.cxx)
|
||||
target_link_libraries(json_tests GTest::GTest GTest::Main)
|
||||
target_include_directories(json_tests PRIVATE "${UPM_COMMON_HEADER_DIRS}/")
|
||||
gtest_add_tests(json_tests "" AUTO)
|
||||
|
||||
# Add a custom target for unit tests
|
||||
add_custom_target(tests-unit ALL
|
||||
DEPENDS
|
||||
utilities_tests
|
||||
json_tests
|
||||
COMMENT "UPM unit test collection")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user