Files
esp-gui-lib/CMakeLists.txt

136 lines
3.5 KiB
CMake

set(headers
src/accessorinterface.h
src/actioninterface.h
src/actions/backproxyaction.h
src/actions/dummyaction.h
src/actions/multiaction.h
src/actions/popscreenaction.h
src/actions/pushscreenaction.h
src/actions/setvalueaction.h
src/actions/switchscreenaction.h
src/actions/toggleboolaction.h
src/backinterface.h
src/buttonsinterface.h
src/changevaluedisplay.h
src/changevaluedisplay_bool.h
src/changevaluedisplay_chrono.h
src/changevaluedisplay_daylightsavingmode.h
src/changevaluedisplay_ip_address_t.h
src/changevaluedisplay_sntp_sync_mode_t.h
src/changevaluedisplay_string.h
src/changevaluedisplay_wifi_auth_mode_t.h
src/changevaluedisplay_wifi_mode_t.h
src/checkboxicon.h
src/colorinterface.h
src/confirminterface.h
src/display.h
src/displaywithtitle.h
src/errorhandlerinterface.h
src/fontinterface.h
src/graphdisplay.h
src/iconinterface.h
src/keyboardhelper.h
src/icons/back.h
src/icons/checked.h
src/icons/unchecked.h
src/icons/back_grey.h
src/icons/checked_grey.h
src/icons/unchecked_grey.h
src/marginmenuitem.h
src/menudisplay.h
src/menuitem.h
src/messagepopupdisplay.h
src/popupdisplay.h
src/richtexthelper.h
src/richtextrenderer.h
src/screenmanager.h
src/scrollinterface.h
src/splitgraphdisplay.h
src/textinterface.h
src/textwithvaluehelper.h
src/tftcolors.h
src/titleinterface.h
src/visibleinterface.h
src/widgets/centeredlabel.h
src/widgets/graph.h
src/widgets/iconwidget.h
src/widgets/label.h
src/widgets/progressbar.h
src/widgets/reverseprogressbar.h
src/widgets/slider.h
src/widgets/variablerangeprogressbar.h
src/widgets/variablerangereverseprogressbar.h
src/widgets/verticalmeter.h
src/widgets/vumeter.h
)
set(sources
src/changevaluedisplay.cpp
src/changevaluedisplay_bool.cpp
src/changevaluedisplay_daylightsavingmode.cpp
src/changevaluedisplay_ip_address_t.cpp
src/changevaluedisplay_sntp_sync_mode_t.cpp
src/changevaluedisplay_string.cpp
src/changevaluedisplay_wifi_auth_mode_t.cpp
src/changevaluedisplay_wifi_mode_t.cpp
src/display.cpp
src/displaywithtitle.cpp
src/graphdisplay.cpp
src/menudisplay.cpp
src/messagepopupdisplay.cpp
src/screenmanager.cpp
src/splitgraphdisplay.cpp
src/popupdisplay.cpp
src/richtexthelper.cpp
src/richtextrenderer.cpp
src/icons/back.cpp
src/icons/checked.cpp
src/icons/unchecked.cpp
src/icons/back_grey.cpp
src/icons/checked_grey.cpp
src/icons/unchecked_grey.cpp
src/widgets/centeredlabel.cpp
src/widgets/iconwidget.cpp
src/widgets/label.cpp
src/widgets/progressbar.cpp
src/widgets/reverseprogressbar.cpp
src/widgets/slider.cpp
src/widgets/variablerangeprogressbar.cpp
src/widgets/variablerangereverseprogressbar.cpp
src/widgets/verticalmeter.cpp
src/widgets/vumeter.cpp
)
set(dependencies
cpputils
cxx-ring-buffer
espchrono
espcpputils
espwifistack
TFT_eSPI
esptftlib
espfontlib
)
idf_component_register(
INCLUDE_DIRS
src
SRCS
${headers}
${sources}
REQUIRES
${dependencies}
)
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
)