On Thursday 29 November 2007, Jesse Corrington wrote: > I am trying to make a platform module to generate symbian build files, so I > was reading the cmake wiki article about cross compiling. It seems to make > pretty good sense, but I have a few questions before I get started. > > -After making the toolchain cmake file, is the only way to run cmake with > that toolchain set to run from the command line like this? > > ~/src/build$ cmake -DCMAKE_TOOLCHAIN_FILE=~/Toolchain-eldk-ppc74xx.cmake ..
Yes. Bill, would you mind a -T (as in toolchain) cmake command line option ? It would really save a lot of typing. If so, we should add it before 2.6.0 and the book are out. > -where do I write the actual script to generate the build files. On symbian > this is one mmp file and an inf file. Is it in I don't know what a mmp and an inf file are. > Platform/${CMAKE_SYSTEM_NAME}.cmake (mandatory)? You write your CMakeLists.txt as usual, but when cmake starts it will load the Modules/Platform/Symbian.cmake and Modules/Platform/Symbian-<compiler>.cmake file (if it exists). The compiler file should contain the rules for creating libraries and executables, these rules maybe use the mmp and inf files ? Bye Alex P.S. I'm moving in two hours or so, not sure if I'll be online again next week already _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake