mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 09:51:21 +00:00
45 lines
1.9 KiB
CMake
45 lines
1.9 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)
|