forked from zang09/ORB-SLAM3-STEREO-FIXED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTC-orbslam.cmake
25 lines (18 loc) · 918 Bytes
/
TC-orbslam.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
# which compilers to use for C and C++
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++)
# where is the target environment located
set(CMAKE_SYSROOT /media/torben/writable)
#set(CMAKE_FIND_ROOT_PATH /media/torben/writable)
# adjust the default behavior of the FIND_XXX() commands:
# search programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# search headers and libraries in the target environment
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a")
# automatically use the cross-wrapper for pkg-config
#set(PKG_CONFIG_EXECUTABLE "/usr/bin/aarch64-linux-gnueabi-pkg-config" CACHE FILEPATH "pkg-config executable")