代码拉取完成,页面将自动刷新
同步操作将从 Flying/ssd2xx-demo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.10)
project(ssd2xx-demo)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# add_definitions("-Wall -g")
string(ASCII 27 Esc)
set(Red "${Esc}[31m")
set(Green "${Esc}[32m")
set(ColourReset "${Esc}[m")
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
if(CHIP STREQUAL "ssd20x")
message("${Green} 当前使用demo适用于:${CHIP} ${ColourReset}")
add_definitions(-DCHIP_SSD20X)
include_directories(${CMAKE_SOURCE_DIR}/0.common/ssd20x/include)
link_directories(${CMAKE_SOURCE_DIR}/0.common/ssd20x/ex_libs/dynamic)
link_directories(${CMAKE_SOURCE_DIR}/0.common/ssd20x/mi_libs/dynamic)
elseif(CHIP STREQUAL "ssd2x2")
message("${Green} 当前使用demo适用于:${CHIP} ${ColourReset}")
add_definitions(-DCHIP_SSD2X2)
include_directories(${CMAKE_SOURCE_DIR}/0.common/ssd2x2/include)
link_directories(${CMAKE_SOURCE_DIR}/0.common/ssd2x2/ex_libs/dynamic)
link_directories(${CMAKE_SOURCE_DIR}/0.common/ssd2x2/mi_libs/dynamic)
elseif(CHIP STREQUAL "mp157")
# eg:cmake -D CMAKE_TOOLCHAIN_FILE=toolchain_mp157.cmake -D CHIP=mp157 ..
message("${Green} 当前使用demo适用于:${CHIP} ${ColourReset}")
add_definitions(-DCHIP_MP157)
else()
message("${Red} 请指定编译目标。eg:cmake -D CMAKE_TOOLCHAIN_FILE=toolchain.cmake -D CHIP=ssd20x .. ${ColourReset}" )
message("${Red} 编译详细过程可见 README.md ${ColourReset}" )
message(FATAL_ERROR)
endif()
add_subdirectory(0.common)
add_subdirectory(1.watchdog)
add_subdirectory(2.panel)
add_subdirectory(3.framebuffer)
add_subdirectory(4.littlevgl)
add_subdirectory(5.wifi)
add_subdirectory(6.audio)
add_subdirectory(7.gpio)
add_subdirectory(8.pwm)
add_subdirectory(9.uart)
add_subdirectory(10.video)
add_subdirectory(11.mi_gfx)
add_subdirectory(12.mi_disp)
add_subdirectory(13.uuid)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。