summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2025-07-28 08:54:31 -0700
committerGitHub <noreply@github.com>2025-07-28 08:54:31 -0700
commit1d20000411c120d81144c736f81e5552498a3e77 (patch)
tree045d3786785f4aecd14607084204f719637cdca9 /CMakeLists.txt
parent73209fcf2c276b3ba64e720b512364805c20b7b6 (diff)
MPQ Support LUS Bump (#5570)
* Adapt to changes to LUS regarding including MPQ support. * CMake compile definitions are stupid. * Don't manually close O2RArchive. * Finish LUS bump, including SoH-side fix for font free crash.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3324b7c00..ef00ae8f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -155,6 +155,9 @@ set(GFX_DEBUG_DISASSEMBLER ON)
set(GBI_UCODE F3DEX_GBI_2)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
+# Enable MPQ and OTR support
+set(INCLUDE_MPQ_SUPPORT ON)
+
################################################################################
# Set CONTROLLERBUTTONS_T
################################################################################
@@ -165,6 +168,7 @@ add_compile_definitions(CONTROLLERBUTTONS_T=uint32_t)
################################################################################
add_subdirectory(libultraship ${CMAKE_BINARY_DIR}/libultraship)
target_compile_options(libultraship PRIVATE "${WARNING_OVERRIDE}")
+target_compile_definitions(libultraship PUBLIC INCLUDE_MPQ_SUPPORT)
add_subdirectory(ZAPDTR/ZAPD ${CMAKE_BINARY_DIR}/ZAPD)
add_subdirectory(OTRExporter)
add_subdirectory(soh)