이런 파일을 만들고
[filename] toolchain.arm.cmake
SET(CMAKE_C_COMPILER /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-g++)
SET(CMAKE_LINKER /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-ld)
SET(CMAKE_NM /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-nm)
SET(CMAKE_OBJCOPY /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-objcopy)
SET(CMAKE_OBJDUMP /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-objdump)
SET(CMAKE_RANLIB /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-ranlib)
이렇게 실행합니다.
$ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.arm.cmake .