I defined a custom target in cmake. Now I want this target to be created only when the cmake test target was completed. How can i achieve this.
Suppose I have a make coverage target, which should depend on the target make test , which must be called before, or call make test before executing.
How can I define this behavior in cmake?
Here is my code that did not work properly. I want to make coverage depend on what you need to make the call first.
ADD_CUSTOM_TARGET( coverage COMMAND /bin/bash ${LIBPIPE_BINARY_DIR}/cmake/scripts/coverage.sh DEPENDS test )
source share