cmake: also build certs when building test executables

To support running tests directly via `runtests.pl` after building
the test targets. Also to sync with the same update for autotools.

Follow-up to 0c1ad21f97 #16845
Closes #16866
This commit is contained in:
Viktor Szakats 2025-03-29 13:29:26 +01:00
parent f07d57b955
commit 68609f0e33
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -31,6 +31,7 @@ add_custom_command(OUTPUT ${GENERATEDCERTS}
VERBATIM
)
add_custom_target(build-certs DEPENDS ${GENERATEDCERTS})
add_dependencies(testdeps build-certs)
add_custom_target(clean-certs
COMMAND ${CMAKE_COMMAND} -E remove ${GENERATEDCERTS}