-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
26 lines (20 loc) · 877 Bytes
/
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
cmake_minimum_required(VERSION 3.16.0)
# Set IDF_TARGET from environment variable if defined
if(DEFINED ENV{IDF_TARGET})
set(IDF_TARGET $ENV{IDF_TARGET})
message(STATUS "Setting IDF_TARGET to ${IDF_TARGET} from environment variable")
endif()
# Partition table settings
add_link_options("-Wl,-z,muldefs")
if(DEFINED ENV{FLAPPY_GHOST_WEB_HOOK})
set(FLAPPY_GHOST_WEB_HOOK "$ENV{FLAPPY_GHOST_WEB_HOOK}")
add_compile_definitions(FLAPPY_GHOST_WEB_HOOK=\"${FLAPPY_GHOST_WEB_HOOK}\")
endif()
set(SDKCONFIG_DEFAULTS "sdkconfig.defaults")
add_compile_definitions(HOLD_LIMIT=1000) # For joystick hold duration
add_compile_definitions(LED_ORDER=0) # 2 for RGB, 0 for GRB
add_compile_definitions(DNS_SERVER_MAX_ITEMS=1)
add_compile_definitions(MAX_WPS_NETWORKS=15)
# Include project settings
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Ghost_ESP_IDF)