pcsx2/3rdparty/imgui/CMakeLists.txt

33 lines
687 B
CMake
Raw Normal View History

2021-09-14 09:11:59 +00:00
add_library(imgui
imgui/imconfig.h
imgui/imgui.cpp
imgui/imgui.h
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui_internal.h
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
)
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/imgui" "${CMAKE_CURRENT_SOURCE_DIR}/include")
if(USE_OPENGL)
target_sources(imgui PRIVATE
include/imgui_impl_opengl3.h
src/imgui_impl_opengl3.cpp
)
target_link_libraries(imgui glad)
endif()
2021-09-14 09:11:59 +00:00
if(WIN32)
target_sources(imgui PRIVATE
include/imgui_impl_dx11.h
2022-03-19 12:16:00 +00:00
include/imgui_impl_dx12.h
2021-09-14 09:11:59 +00:00
src/imgui_impl_dx11.cpp
2022-03-19 12:16:00 +00:00
src/imgui_impl_dx12.cpp
2021-09-14 09:11:59 +00:00
)
endif()