ESP-Nodes/ESP32-Rainmaker-Switch/CMakeLists.txt

18 lines
679 B
CMake
Raw Normal View History

2024-07-16 21:11:16 -04:00
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
2024-07-16 20:50:57 -04:00
cmake_minimum_required(VERSION 3.5)
if(DEFINED ENV{RMAKER_PATH})
2024-07-16 21:11:16 -04:00
set(RMAKER_PATH $ENV{RMAKER_PATH})
2024-07-16 20:50:57 -04:00
else()
2024-07-16 21:11:16 -04:00
set(RMAKER_PATH ${CMAKE_CURRENT_LIST_DIR}/../..)
2024-07-16 20:50:57 -04:00
endif(DEFINED ENV{RMAKER_PATH})
2024-07-16 21:11:16 -04:00
# Add RainMaker components and other common application components
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${RMAKER_PATH}/examples/common)
2024-07-16 20:50:57 -04:00
2024-08-12 00:10:27 -04:00
# Increase project version in order for OTA to work
set(PROJECT_VER "2.5")
2024-07-16 20:50:57 -04:00
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ESP32-Rainmaker-Switch)