forked from shufps/ESP-Miner-NerdQAxePlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·45 lines (31 loc) · 1.43 KB
/
Copy pathCMakeLists.txt
File metadata and controls
executable file
·45 lines (31 loc) · 1.43 KB
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
35
36
37
38
39
40
41
42
43
44
# 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)
cmake_minimum_required(VERSION 3.8)
set(CMAKE_CXX_STANDARD 17)
add_definitions(-DLV_LVGL_H_INCLUDE_SIMPLE)
# Check if the environment variable BOARD is defined
if(DEFINED ENV{BOARD})
add_compile_definitions($ENV{BOARD})
else()
message(FATAL_ERROR "Environment variable BOARD is not set")
endif()
message(STATUS "Selected board: $ENV{BOARD}")
set(ENV{SOURCE_DATE_EPOCH} 0)
add_compile_definitions(LV_MEM_CUSTOM=1)
add_compile_definitions(LV_MEM_CUSTOM_INCLUDE=<lvgl_psram.h>)
add_compile_definitions(LV_MEM_CUSTOM_ALLOC=lv_psram_alloc)
add_compile_definitions(LV_MEM_CUSTOM_FREE=lv_psram_free)
add_compile_definitions(LV_MEM_CUSTOM_REALLOC=lv_psram_realloc)
#add_compile_definitions(CONFIG_FREERTOS_USE_TRACE_FACILITY=1)
#add_compile_definitions(CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=1)
# adds -I./main; needed for components to have
# access to main include files
include_directories("./main")
# this are only header files
include_directories("./components/arduinojson")
# (Not part of the boilerplate)
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
# set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp-miner)