On Wednesday 20 June 2007 09:37, Raphael Cotty wrote: > Hi, > I have this CMakeLists.txt: > PROJECT( CMakeTest ) > > SET( CMAKE_SYSTEM_NAME Generic ) > > # specify the cross compiler > SET( CMAKE_C_COMPILER ccblkfn ) > > # where is the target environment > SET( CMAKE_FIND_ROOT_PATH "G:/tools/AnalogDevices/VisualDSP4.5/Blackfin" ) > > I have put *Generic-ccblkfn-C.cmake *and *Generic-ccblkfn-CXX.cmake *in > Modules/Platforms and the .c and .cpp files into Modules. > > The run of cmake gives: > G:\build\CMakeTest>..\CMake\bin\cmake.exe G:\src\CMakeTest
Yes. Put the settings above into a file Blackfin-Toolchain.cmake and then run cmake like this: ..\CMake\bin\cmake.exe -DCMAKE_TOOLCHAIN_FILE=Blackfin-Toolchain.cmake G: \src\CMakeTest Bye Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake