dolphin/Externals/imgui/CMakeLists.txt
Pokechu22 0fcff9f5ea cmake: Use C++20 for ImGui
We use Dolphin code (specifically Common's ASSERT) from ImGui, and that will use C++20 features in the next commit, so ImGui needs to be built with C++20 for that to work properly.
2022-08-23 12:09:51 -07:00

22 lines
394 B
CMake

if (NOT MSVC)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
set(SRCS
imgui.cpp
imgui_draw.cpp
imgui_tables.cpp
imgui_widgets.cpp
)
add_library(imgui STATIC ${SRCS})
dolphin_disable_warnings_msvc(imgui)
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(imgui
PRIVATE
fmt::fmt
)