[CMake] Global build target for global post-build stage ?

2006-12-06 Thread Eric BOIX
Dear cmake users, I would like to launch a command after ALL the targets are build (think of e.g. displaying a small message). I could achieve this with an ad-hoc ADD_CUSTOM_COMMAND( TARGET target POST_BUILD COMMAND ...) at the condition of knowing the name of cmake's internal global buil

Re: [CMake] Global build target for global post-build stage ?

2006-12-06 Thread David Cole
You could add a custom target that depends on all the other targets in your project. On 12/6/06, Eric BOIX <[EMAIL PROTECTED]> wrote: Dear cmake users, I would like to launch a command after ALL the targets are build (think of e.g. displaying a small message). I could achieve this with

Re: [CMake] Global build target for global post-build stage ?

2006-12-06 Thread Eric BOIX
Dear David Cole, Quoting David Cole <[EMAIL PROTECTED]>: > You could add a custom target that depends on all the other targets in your > project. True enough. But for big projects this places a global constraint on all CMakeLists.txt maintainers who get to update the custom global target d

Re: [CMake] Global build target for global post-build stage ?

2006-12-06 Thread David Cole
What's the motivation behind your question? (1) Do you want to do this custom command at the end of *every* developer's *every* call to make from your top level? (2) Or do you want to post an automatic build from a build machine when the build is 'done'...? (3) Something else? For (2), I'd recom

Re: [CMake] Global build target for global post-build stage ?

2006-12-06 Thread Eric BOIX
Dear David, Quoting David Cole <[EMAIL PROTECTED]>: > What's the motivation behind your question? It's just an end user demand. I'm porting from the autotools to Cmake. With the autotools makefiles the building users were used to get a simple final message echoed on their terminal going l