2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 13:11:22 +00:00
metaforce/extern/CMakeLists.txt
2025-04-04 12:30:06 -07:00

46 lines
2.0 KiB
CMake

# Enable MoltenVK
#if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
# set(DAWN_ENABLE_VULKAN ON CACHE BOOL "Enable compilation of the Vulkan backend" FORCE)
#endif()
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
set(DAWN_USE_WAYLAND ON CACHE BOOL "Enable support for Wayland surface" FORCE)
endif ()
set(AURORA_NATIVE_MATRIX ON CACHE BOOL "Assume OpenGL-layout matrices, disables transposing" FORCE)
add_subdirectory(aurora)
if (NOT TARGET spdlog)
set(SPDLOG_NO_EXCEPTIONS ON CACHE BOOL "Compile with -fno-exceptions. Call abort() on any spdlog exceptions" FORCE)
set(SPDLOG_FMT_EXTERNAL ON CACHE BOOL "Use external fmt library instead of bundled" FORCE)
add_subdirectory(spdlog EXCLUDE_FROM_ALL)
endif ()
add_subdirectory(nod EXCLUDE_FROM_ALL)
add_subdirectory(jbus EXCLUDE_FROM_ALL)
add_subdirectory(kabufuda EXCLUDE_FROM_ALL)
option(NFD_PORTAL "Use xdg-desktop-portal instead of GTK" ON)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_subdirectory(nativefiledialog-extended)
target_compile_definitions(nfd INTERFACE NATIVEFILEDIALOG_SUPPORTED)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_subdirectory(nativefiledialog-extended)
target_compile_definitions(nfd INTERFACE NATIVEFILEDIALOG_SUPPORTED)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_subdirectory(nativefiledialog-extended)
target_compile_definitions(nfd INTERFACE NATIVEFILEDIALOG_SUPPORTED)
else ()
message(WARNING "nativefiledialog unsupported for ${CMAKE_SYSTEM_NAME}")
endif ()
option(OPTICK_ENABLED "Enable profiling with Optick" OFF)
set(OPTICK_USE_VULKAN ${DAWN_ENABLE_VULKAN} CACHE BOOL "Built-in support for Vulkan" FORCE)
set(OPTICK_INSTALL_TARGETS OFF CACHE BOOL "Should optick be installed? Set to OFF if you use add_subdirectory to include Optick." FORCE)
add_subdirectory(optick)
if (NOT MSVC)
target_compile_options(OptickCore PRIVATE -Wno-implicit-fallthrough)
endif ()
add_subdirectory(libjpeg-turbo EXCLUDE_FROM_ALL)
add_subdirectory(zeus EXCLUDE_FROM_ALL)
add_subdirectory(musyx EXCLUDE_FROM_ALL)