1234567891011121314151617181920 |
- # cmake script which sets up all the toolchain related variables
- # -DCMAKE_TOOLCHAIN_FILE=this_file_name.cmake
- set(CMAKE_SYSTEM_NAME Linux) # UOS
- set(CMAKE_SYSTEM_PROCESSOR arm)
- #set(CMAKE_SYSTEMROOT)
- set(cross_compile_tools )
- set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc-8)
- # if toolchains is a GNU toolchain, only need to set one of both
- set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++-8)
- # target library find path be prefixed with
- # set(CMAKE_FIND_ROOT_PATH )
- # set behaviour for find_program() cmd: never, only, both,refer to CMAKE_FIND_ROOT_PATH
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|