2021-05-24 21:25:31 +00:00
|
|
|
add_library(imgui
|
|
|
|
../extern/imgui/imgui.cpp
|
|
|
|
../extern/imgui/imgui_demo.cpp
|
|
|
|
../extern/imgui/imgui_draw.cpp
|
|
|
|
../extern/imgui/imgui_tables.cpp
|
|
|
|
../extern/imgui/imgui_widgets.cpp
|
|
|
|
ImGuiEngine.cpp
|
|
|
|
ImGuiEngine.hpp
|
2021-05-25 13:36:58 +00:00
|
|
|
NotoMono.cpp
|
2021-05-27 04:56:25 +00:00
|
|
|
MetaforceIcon.cpp
|
2021-05-24 21:25:31 +00:00
|
|
|
)
|
2021-05-25 16:24:05 +00:00
|
|
|
target_include_directories(imgui PUBLIC ${CMAKE_SOURCE_DIR}/extern/imgui ${CMAKE_CURRENT_SOURCE_DIR})
|
2021-05-24 21:25:31 +00:00
|
|
|
target_compile_definitions(imgui PUBLIC IMGUI_USER_CONFIG="imconfig_user.h")
|
|
|
|
target_link_libraries(imgui PRIVATE boo hecl-light RetroDataSpec)
|
|
|
|
|
2021-05-25 13:36:58 +00:00
|
|
|
bintoc_compress(NotoMono.cpp NotoMono-Regular.ttf NOTO_MONO_FONT)
|
2021-05-27 04:56:25 +00:00
|
|
|
bintoc(MetaforceIcon.cpp ../Runtime/platforms/freedesktop/256x256/apps/metaforce.png METAFORCE_ICON)
|
2021-05-25 13:36:58 +00:00
|
|
|
|
2021-05-24 22:53:49 +00:00
|
|
|
add_shader(ImGuiShader)
|
|
|
|
target_link_libraries(shader_ImGuiShader PRIVATE hecl-light)
|