[CMake] How to make package depend on tests?
Michael Hertling
mhertling at online.de
Tue Mar 6 03:04:33 EST 2012
On 03/06/2012 12:36 AM, Oliver kfsone Smith wrote:
> I have test and package configurations on my project, I want:
>
> cmake .
> make package
>
> to run force injection of the "test" target prior to building the
> package target.
>
> Can it be done? How? :)
By filing a solution to [1]. ;-)
In the meantime, you might provide a target on your own:
ADD_CUSTOM_TARGET(test_and_pack
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target test
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target package
)
Regards,
Michael
[1] http://public.kitware.com/Bug/view.php?id=8438
More information about the CMake
mailing list