-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 1.39 KB
/
CMakeLists.txt
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
26
27
28
29
30
31
32
33
34
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(CCACHE_ENABLE "1")
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
set(KERNEL_ADD_DEPENDENCY_SLINT true)
# Needed for lvgl
add_compile_definitions(LV_LVGL_H_INCLUDE_SIMPLE=1)
# May be needed for 5" display to display the screen properly when using lvgl
#add_compile_definitions(DISPLAY_NUM_FB=2)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(DISPLAYDEMOSLINT)
if(${KERNEL_ADD_DEPENDENCY_SLINT})
set(SLINT_STYLE "fluent-light")
set(SLINT_FONT_SIZES 12,24,48)
SET(GCC_COVERAGE_LINK_FLAGS "-z noexecstack")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} -Wl,--allow-multiple-definition")
endif()
if(DEFINED ENV{FLASHERDIR})
# The following line is needed when creating eso files in the format of ESoPe GmbH. For this you need the Flasher tool of ESoPe GmbH.
# This is needed to use the secure software update mechanisms implemented from ESoPe.
add_custom_target(${PROJECT_NAME} ALL
COMMAND "$ENV{FLASHERDIR}\\Flasher.Cli.exe" "${project_dir}/config.json"
COMMAND "$ENV{FLASHERDIR}\\Flasher.Cli.exe" "${project_dir}/config_compressed.json"
)
add_dependencies(${PROJECT_NAME} gen_project_binary)
endif()