Von: "Peter Visser" <[EMAIL PROTECTED]> > The great thing is that cross compiling was very simple with to setup with > CMake in my case, I didn't require a "special" CMakeLists.txt. > > All I do is create a file e.g. "setmingw" with: > > export CC=i586-mingw32msvc-gcc > export CXX=i586-mingw32msvc-g++ > export LD=i586-mingw32msvc-ld > export AR=i586-mingw32msvc-ar > export AS=i586-mingw32msvc-as > export NM=i586-mingw32msvc-nm > export STRIP=i586-mingw32msvc-strip > export RANLIB=i586-mingw32msvc-ranlib > export DLLTOOL=i586-mingw32msvc-dlltool > export OBJDUMP=i586-mingw32msvc-objdump > export RESCOMP=i586-mingw32msvc-windres > export CFLAGS=
For eCos I set the variables from withtin the cmake files, you could do this too: SET(CMAKE_C_COMPILER i586-mingw32msvc-gcc) And you probably have to set some more variables, e.g. I also need to set CMAKE_CXX_LINK_EXECUTABLE() and CMAKE_C_LINK_EXECUTABLE(). Did you already have a look at some of the platform files ? Bye Alex -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
