mirror of https://github.com/PCSX2/pcsx2.git
27 lines
703 B
CMake
27 lines
703 B
CMake
add_library(imgui
|
|
include/imconfig.h
|
|
include/imgui.h
|
|
include/imgui_freetype.h
|
|
include/imgui_internal.h
|
|
include/imgui_stdlib.h
|
|
include/imstb_textedit.h
|
|
src/imgui.cpp
|
|
src/imgui_demo.cpp
|
|
src/imgui_draw.cpp
|
|
src/imgui_freetype.cpp
|
|
src/imgui_tables.cpp
|
|
src/imgui_widgets.cpp
|
|
src/imstb_rectpack.h
|
|
src/imstb_truetype.h
|
|
src/imgui_stdlib.cpp
|
|
)
|
|
|
|
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
target_include_directories(imgui PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
target_link_libraries(imgui PUBLIC Freetype::Freetype)
|
|
|
|
# Needed for macOS compile.
|
|
set_property(TARGET imgui PROPERTY CXX_STANDARD 17)
|
|
set_property(TARGET imgui PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|