2022-02-25 19:03:09 +08:00
|
|
|
set(target_name ImGui)
|
2020-09-04 17:19:51 +08:00
|
|
|
|
2024-02-03 10:08:22 +08:00
|
|
|
include_directories(src/ImGui/imgui)
|
2020-09-04 17:19:51 +08:00
|
|
|
|
|
|
|
set(HEADER
|
2024-02-03 10:08:22 +08:00
|
|
|
src/ImGui/ImGuiPresenter.h
|
2020-09-04 17:19:51 +08:00
|
|
|
# CCImGuiColorTextEdit.h
|
2024-02-03 10:08:22 +08:00
|
|
|
src/ImGui/imgui/imconfig.h
|
|
|
|
src/ImGui/imgui/imgui.h
|
|
|
|
src/ImGui/imgui/imgui_internal.h
|
|
|
|
src/ImGui/imgui/imstb_rectpack.h
|
|
|
|
src/ImGui/imgui/imstb_textedit.h
|
|
|
|
src/ImGui/imgui/imstb_truetype.h
|
|
|
|
src/ImGui/imgui/misc/cpp/imgui_stdlib.h
|
2020-09-04 17:19:51 +08:00
|
|
|
#~ imgui_markdown/imgui_markdown.h
|
|
|
|
#~ ImGuiColorTextEdit/TextEditor.h
|
|
|
|
#~ implot/implot.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCE
|
2024-02-03 10:08:22 +08:00
|
|
|
src/ImGui/ImGuiPresenter.cpp
|
2020-09-04 17:19:51 +08:00
|
|
|
# CCImGuiColorTextEdit.cpp
|
2024-02-03 10:08:22 +08:00
|
|
|
src/ImGui/imgui/imgui.cpp
|
|
|
|
src/ImGui/imgui/imgui_demo.cpp
|
|
|
|
src/ImGui/imgui/imgui_draw.cpp
|
|
|
|
src/ImGui/imgui/imgui_widgets.cpp
|
|
|
|
src/ImGui/imgui/imgui_tables.cpp
|
|
|
|
src/ImGui/imgui/misc/cpp/imgui_stdlib.cpp
|
2020-09-04 17:19:51 +08:00
|
|
|
#~ ImGuiColorTextEdit/TextEditor.cpp
|
|
|
|
#~ implot/implot.cpp
|
|
|
|
#~ implot/implot_demo.cpp
|
|
|
|
)
|
|
|
|
|
2022-10-10 03:53:24 +08:00
|
|
|
if(ANDROID)
|
2024-02-03 10:08:22 +08:00
|
|
|
list(APPEND SOURCE src/ImGui/imgui_impl_ax_android.cpp)
|
|
|
|
list(APPEND HEADER src/ImGui/imgui_impl_ax_android.h)
|
2022-10-10 03:53:24 +08:00
|
|
|
else()
|
2024-02-03 10:08:22 +08:00
|
|
|
list(APPEND SOURCE src/ImGui/imgui_impl_ax.cpp)
|
|
|
|
list(APPEND HEADER src/ImGui/imgui_impl_ax.h)
|
2022-10-10 03:53:24 +08:00
|
|
|
endif()
|
|
|
|
|
2022-02-17 21:31:39 +08:00
|
|
|
#~ if(AX_ENABLE_EXT_LUA)
|
2020-09-04 17:19:51 +08:00
|
|
|
#~ include_directories(
|
|
|
|
#~ lua-bindings
|
2024-03-19 21:33:02 +08:00
|
|
|
#~ ${_AX_ROOT}/3rdparty/lua/luajit/include
|
|
|
|
#~ ${_AX_ROOT}/3rdparty/lua/tolua
|
2020-09-04 17:19:51 +08:00
|
|
|
#~ )
|
|
|
|
#~ list(APPEND HEADER
|
|
|
|
#~ lua-bindings/imgui_lua.hpp
|
|
|
|
#~ lua-bindings/lua_conversion.hpp
|
|
|
|
#~ lua-bindings/lua_imgui_auto.hpp
|
|
|
|
#~ lua-bindings/lua_imguiDrawList_auto.hpp
|
|
|
|
#~ lua-bindings/lua_imguiFont_auto.hpp
|
|
|
|
#~ lua-bindings/lua_imguiIO_auto.hpp
|
|
|
|
#~ lua-bindings/lua_imguiStyle_auto.hpp
|
|
|
|
#~ lua-bindings/lua_imguiViewport_auto.hpp
|
|
|
|
#~ lua-bindings/lua_ImGuiColorTextEdit_auto.hpp
|
|
|
|
#~ lua-bindings/lua_implot_auto.hpp
|
|
|
|
#~ )
|
|
|
|
#~ list(APPEND SOURCE
|
|
|
|
#~ lua-bindings/imgui_lua.cpp
|
|
|
|
#~ lua-bindings/lua_imguiDrawList_auto.cpp
|
|
|
|
#~ lua-bindings/lua_imguiFont_auto.cpp
|
|
|
|
#~ lua-bindings/lua_imguiIO_auto.cpp
|
|
|
|
#~ lua-bindings/lua_imguiStyle_auto.cpp
|
|
|
|
#~ lua-bindings/lua_imguiViewport_auto.cpp
|
|
|
|
#~ lua-bindings/lua_imgui_auto.cpp
|
|
|
|
#~ lua-bindings/lua_ImGuiColorTextEdit_auto.cpp
|
|
|
|
#~ lua-bindings/lua_implot_auto.cpp
|
|
|
|
#~ )
|
|
|
|
#~ endif()
|
2021-06-08 20:45:55 +08:00
|
|
|
|
2022-10-10 03:53:24 +08:00
|
|
|
add_library(${target_name} STATIC
|
|
|
|
${HEADER}
|
2020-09-04 17:19:51 +08:00
|
|
|
${SOURCE})
|
|
|
|
|
2024-02-03 10:08:22 +08:00
|
|
|
target_include_directories(${target_name}
|
|
|
|
PUBLIC src
|
|
|
|
PUBLIC src/ImGui/imgui
|
|
|
|
|
|
|
|
INTERFACE src
|
|
|
|
INTERFACE src/ImGui/imgui
|
|
|
|
)
|
2023-09-02 19:56:50 +08:00
|
|
|
|
|
|
|
ax_find_shaders(${CMAKE_CURRENT_LIST_DIR}/shaders IMGUI_SHADER_SOURCES)
|
|
|
|
ax_target_compile_shaders(${target_name} FILES ${IMGUI_SHADER_SOURCES} CUSTOM)
|
|
|
|
|
2022-08-11 15:41:10 +08:00
|
|
|
setup_ax_extension_config(${target_name})
|