[CMake] Delivery target
Reinhard Thies
Reinhard.Thies at web.de
Wed Jan 5 08:13:24 EST 2011
On Wednesday 05 January 2011 12:32:52 David Cole wrote:
> You can't depend on "package", but you can do this as your custom
> target's command:
>
> cmake --build . --target package --config Release
> scp ...
>
that the way I have it
ADD_CUSTOM_TARGET(delivery
rm -rf ${CMAKE_PROJECT_NAME}*.tar.gz
COMMAND make package
COMMAND scp ${CMAKE_PROJECT_NAME}*.tar.gz ds:/srv/repos/bin
)
I just thought there might be a better way.
thx,
Reinhard
More information about the CMake
mailing list