-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (19 loc) · 848 Bytes
/
CMakeLists.txt
File metadata and controls
25 lines (19 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.16.3)
project(Onion_Omega2plus_st7735)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR mips)
set(CMAKE_STAGING_PREFIX /home/dan/source/staging_dir)
set(tools /home/dan/source/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl)
set(CMAKE_C_COMPILER ${tools}/bin/mipsel-openwrt-linux-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/mipsel-openwrt-linux-g++)
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)
add_subdirectory(gpio_lib)
add_subdirectory(lib)
file(GLOB source "./src/*.c")
add_executable(omega_st7735 ${source})
target_link_libraries(omega_st7735 PUBLIC st7735)
target_include_directories(omega_st7735 PUBLIC lib)
target_include_directories(omega_st7735 PUBLIC gpio_lib)