[CMake] cmake's check of the generated target

Eric Noulard eric.noulard at gmail.com
Wed Jun 8 09:56:00 EDT 2011


2011/6/8 Ilias Miroslav <Miroslav.Ilias at umb.sk>:
> Dear experts,
>
> We would like to check the generated target (main executable) after it was built.
>
> For example
> .
> .
> Linking Fortran executable vibcal.x
> [100%] Built target vibcal.x
> [100%] Built target dirac.x
>
> afterwards, it would be good to get own message about properties of the generated target dirac.x, for instance "ldd dirac.x",  "size dirac.x" etc. How to do that with the  CMake please ?

add_custom_command(TARGET dirac.x POST_BUILD COMMAND ldd dirac.x)

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list