Put idf tools behind a cmake flag that can be turned off

This commit is contained in:
Marek Roszko 2024-04-23 22:42:52 -04:00
parent 0cd3e17db7
commit a8972f54c4
2 changed files with 7 additions and 1 deletions

View File

@ -262,6 +262,10 @@ option( KICAD_IPC_API
"Enable experimental IPC API"
OFF )
option( KICAD_IDF_TOOLS
"Build additional idf tools"
ON )
# Global setting: exports are explicit
set( CMAKE_CXX_VISIBILITY_PRESET "hidden" )
set( CMAKE_VISIBILITY_INLINES_HIDDEN ON )

View File

@ -4,4 +4,6 @@ if( COMPILER_SUPPORTS_WARNINGS )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_FLAGS_C}")
endif()
add_subdirectory( idftools )
if( KICAD_IDF_TOOLS )
add_subdirectory( idftools )
endif()