I am trying to pass my project name to my components.
Here is my "CMakeLists.txt"
Code: Select all
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(my_project) # Your project name
add_definitions(-DMY_PROJECT_NAME=\"${PROJECT_NAME}\")
Any suggestions? What am I missing?
TIA,
-T