cmake_minimum_required(VERSION 3.24 FATAL_ERROR) include(FetchContent) if (NOT TARGET solanaceae_plugin) FetchContent_Declare(solanaceae_plugin GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_plugin.git GIT_TAG master EXCLUDE_FROM_ALL ) FetchContent_MakeAvailable(solanaceae_plugin) endif() if (NOT TARGET PureDOOM) add_subdirectory(./pure_doom) endif() if (NOT TARGET imgui) FetchContent_Declare(imgui GIT_REPOSITORY https://github.com/ocornut/imgui.git #GIT_TAG d6cb3c9 # v1.90.1 #GIT_TAG b475309fa1e # tomato at ~v0.2 GIT_TAG 6ccc561 # v1.90.6 EXCLUDE_FROM_ALL ) # imgui does not provide a cmake FetchContent_GetProperties(imgui) if(NOT imgui_POPULATED) FetchContent_Populate(imgui) add_library(imgui STATIC ${imgui_SOURCE_DIR}/imgui.h ${imgui_SOURCE_DIR}/imgui_internal.h ${imgui_SOURCE_DIR}/imgui.cpp ${imgui_SOURCE_DIR}/imgui_demo.cpp ${imgui_SOURCE_DIR}/imgui_draw.cpp ${imgui_SOURCE_DIR}/imgui_tables.cpp ${imgui_SOURCE_DIR}/imgui_widgets.cpp ${imgui_SOURCE_DIR}/imstb_rectpack.h ${imgui_SOURCE_DIR}/imstb_textedit.h ${imgui_SOURCE_DIR}/imstb_truetype.h ${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.h ${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp ) target_include_directories(imgui PUBLIC ${imgui_SOURCE_DIR}) target_compile_features(imgui PUBLIC cxx_std_11) endif() endif()