Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Add target to build all unit tests #2749

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/UnitTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# the common libraries which are linked to every unittest can be
# extended by setting the `unittest_extra_libraries` variables before
# calling the macro.

add_custom_target(unit_tests)

macro(add_unittest _name _source)
# automatically prefix the target name
set(_target "ActsUnitTest${_name}")
Expand All @@ -25,6 +28,7 @@ macro(add_unittest _name _source)
${unittest_extra_libraries})
# register as unittest executable
add_test(NAME ${_name} COMMAND ${_target})
add_dependencies(unit_tests ${_target})
endmacro()

# This function adds a non compile test. To this end it
Expand Down
Loading