works, no input yet, but renders and loads wad
This commit is contained in:
59
external/CMakeLists.txt
vendored
59
external/CMakeLists.txt
vendored
@ -2,16 +2,6 @@ cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
# TODO: move entt dep into solanaceae_contact
|
||||
if (NOT TARGET EnTT::EnTT)
|
||||
FetchContent_Declare(EnTT
|
||||
GIT_REPOSITORY https://github.com/skypjack/entt.git
|
||||
GIT_TAG v3.12.2
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
FetchContent_MakeAvailable(EnTT)
|
||||
endif()
|
||||
|
||||
#if (NOT TARGET solanaceae_util)
|
||||
#FetchContent_Declare(solanaceae_util
|
||||
#GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_util.git
|
||||
@ -21,14 +11,14 @@ endif()
|
||||
#FetchContent_MakeAvailable(solanaceae_util)
|
||||
#endif()
|
||||
|
||||
#if (NOT TARGET solanaceae_contact)
|
||||
#FetchContent_Declare(solanaceae_contact
|
||||
#GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_contact.git
|
||||
#GIT_TAG master
|
||||
#EXCLUDE_FROM_ALL
|
||||
#)
|
||||
#FetchContent_MakeAvailable(solanaceae_contact)
|
||||
#endif()
|
||||
if (NOT TARGET solanaceae_contact)
|
||||
FetchContent_Declare(solanaceae_contact
|
||||
GIT_REPOSITORY https://github.com/Green-Sky/solanaceae_contact.git
|
||||
GIT_TAG master
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
FetchContent_MakeAvailable(solanaceae_contact)
|
||||
endif()
|
||||
|
||||
#if (NOT TARGET solanaceae_message3)
|
||||
#FetchContent_Declare(solanaceae_message3
|
||||
@ -64,3 +54,36 @@ 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
|
||||
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()
|
||||
|
||||
|
5
external/pure_doom/CMakeLists.txt
vendored
5
external/pure_doom/CMakeLists.txt
vendored
@ -2,4 +2,9 @@ cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
|
||||
|
||||
add_library(PureDOOM "./PureDOOM/PureDOOM.h" "./PureDOOM.c")
|
||||
target_include_directories(PureDOOM SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
target_compile_definitions(PureDOOM
|
||||
PRIVATE DOOM_IMPLEMENT_FILE_IO=1
|
||||
PRIVATE DOOM_IMPLEMENT_MALLOC=1
|
||||
#PRIVATE DOOM_IMPLEMENT_GETTIME=1
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user