# dear imgui set(IMGUI_SOURCE_FILES imgui.cpp imgui_demo.cpp imgui_draw.cpp imgui_widgets.cpp) set(IMGUI_HEADER_FILES imconfig.h imgui.h imgui_internal.h imstb_rectpack.h imstb_textedit.h imstb_truetype.h) add_library(imgui STATIC ${IMGUI_SOURCE_FILES} ${IMGUI_HEADER_FILES}) target_include_directories(imgui PUBLIC ..) source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${IMGUI_SOURCE_FILES} ${IMGUI_HEADER_FILES})