[CMake] Performing cross-platform build - how ?

Alexander Neundorf a.neundorf-work at gmx.net
Wed Nov 14 17:13:23 EST 2007


On Wednesday 14 November 2007, Stephen Collyer wrote:
> Alexander Neundorf wrote:
...
> > Yes, it's the install target.
>
> I guess I need to add some specific install related code
> to the CMakeLists.txt files to get that target ?

Yes.
You need to add the INSTALL() commands to get this target.

> >> 7. (Things get even fuzzier ..) I run some commands to
> >> package stuff up from the install trees into .tgz, .rpm
> >> etc using CPack. I have no idea at the moment how this works.
> >
> > Build the "packages" target, that should do it.
>
> And similarly for the packages target ? It's not there
> either.

..and you need to "include(CPack)" and maybe set some cpack variables, see 
here for more info: http://www.cmake.org/Wiki/CMake#CPack

Alex


More information about the CMake mailing list