2023-11-05 12:22:18 +01:00
|
|
|
if (MSVC)
|
|
|
|
# Silence "deprecation" warnings
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
|
|
|
|
endif()
|
2023-05-02 17:22:19 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# Discord-RPC
|
|
|
|
set(BUILD_EXAMPLES OFF CACHE BOOL "")
|
|
|
|
add_subdirectory(discord-rpc EXCLUDE_FROM_ALL)
|
|
|
|
target_include_directories(discord-rpc INTERFACE ./discord-rpc/include)
|
2023-05-02 17:22:19 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# fmtlib
|
|
|
|
add_subdirectory(fmt EXCLUDE_FROM_ALL)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# MagicEnum
|
|
|
|
add_subdirectory(magic_enum EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
# Spdlog
|
2023-04-28 13:36:05 +02:00
|
|
|
set(SPDLOG_WCHAR_FILENAMES ON CACHE BOOL "")
|
|
|
|
set(SPDLOG_NO_THREAD_ID ON CACHE BOOL "")
|
|
|
|
set(SPDLOG_FMT_EXTERNAL ON CACHE BOOL "")
|
|
|
|
add_subdirectory(spdlog EXCLUDE_FROM_ALL)
|
|
|
|
add_library(stb INTERFACE)
|
2023-11-05 12:22:18 +01:00
|
|
|
target_include_directories(stb INTERFACE ./stb)
|
|
|
|
|
|
|
|
# SDL3
|
|
|
|
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
# Toml11
|
|
|
|
add_subdirectory(toml11 EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
# Vulkan
|
|
|
|
add_subdirectory(vulkan EXCLUDE_FROM_ALL)
|
2023-04-28 13:36:05 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# Winpthreads
|
|
|
|
if (WIN32)
|
|
|
|
add_subdirectory(winpthread EXCLUDE_FROM_ALL)
|
2023-11-05 15:30:11 +01:00
|
|
|
target_include_directories(winpthread INTERFACE winpthread/include)
|
2023-11-05 12:22:18 +01:00
|
|
|
endif()
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# xxHash
|
|
|
|
add_library(xxhash INTERFACE)
|
|
|
|
target_include_directories(xxhash INTERFACE xxhash)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
# Zydis
|
2023-05-30 12:33:52 +02:00
|
|
|
option(ZYDIS_BUILD_TOOLS "" OFF)
|
|
|
|
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
2023-11-05 12:22:18 +01:00
|
|
|
add_subdirectory(zydis EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
# Imgui
|
|
|
|
add_library(imgui STATIC)
|
|
|
|
|
|
|
|
target_sources(imgui PRIVATE
|
|
|
|
imgui/imgui_demo.cpp
|
|
|
|
imgui/imgui_draw.cpp
|
|
|
|
imgui/imgui_tables.cpp
|
|
|
|
imgui/imgui_widgets.cpp
|
|
|
|
imgui/imgui.cpp
|
|
|
|
imgui/backends/imgui_impl_opengl3.cpp
|
|
|
|
imgui/backends/imgui_impl_sdl3.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(imgui PUBLIC
|
|
|
|
imgui
|
|
|
|
imgui/backends
|
|
|
|
imgui/include
|
|
|
|
)
|
|
|
|
|
2024-02-14 23:52:57 +01:00
|
|
|
target_link_libraries(imgui PRIVATE SDL3-shared ${CMAKE_DL_LIBS} Zydis discord-rpc)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
|
|
|
|