diff --git a/CMakeLists.txt b/CMakeLists.txt index 855b9da3d..229a63bbc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,15 @@ install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ObjectList_OoTMqDbg.txt" DEST install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/SymbolMap_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT extractor) endif() +if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") +install(DIRECTORY "${CMAKE_SOURCE_DIR}/soh/assets/extractor/" DESTINATION ./assets/extractor COMPONENT ship) +install(DIRECTORY "${CMAKE_SOURCE_DIR}/soh/assets/xml/" DESTINATION ./assets/extractor/xmls COMPONENT ship) +install(DIRECTORY "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/filelists/" DESTINATION ./assets/extractor/filelists COMPONENT ship) +install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ActorList_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship) +install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ObjectList_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship) +install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/SymbolMap_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship) +endif() + find_package(Python3 COMPONENTS Interpreter) # Target to generate OTRs diff --git a/docs/BUILDING.md b/docs/BUILDING.md index d6d061049..56ff9718f 100644 --- a/docs/BUILDING.md +++ b/docs/BUILDING.md @@ -48,6 +48,9 @@ cd Shipwright # If you need to regenerate the asset headers to check them into source & 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64 --target ExtractAssetHeaders + +# If you need a newer soh.otr only +& 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64 --target GenerateSohOtr ``` ### Developing SoH @@ -110,6 +113,9 @@ cmake --build build-cmake --target clean # If you need to regenerate the asset headers to check them into source cmake --build build-cmake --target ExtractAssetHeaders + +# If you need a newer soh.otr only +cmake --build build-cmake --target GenerateSohOtr ``` ### Generating a distributable @@ -157,6 +163,9 @@ cmake --build build-cmake --target clean # If you need to regenerate the asset headers to check them into source cmake --build build-cmake --target ExtractAssetHeaders + +# If you need a newer soh.otr only +cmake --build build-cmake --target GenerateSohOtr ``` ### Generating a distributable diff --git a/soh/CMakeLists.txt b/soh/CMakeLists.txt index 3c12c41a9..647c491f8 100644 --- a/soh/CMakeLists.txt +++ b/soh/CMakeLists.txt @@ -754,6 +754,7 @@ endif() if (CMAKE_SYSTEM_NAME STREQUAL "Windows") INSTALL(FILES $ DESTINATION ./debug COMPONENT ship) +INSTALL(FILES ${CMAKE_BINARY_DIR}/soh/soh.otr DESTINATION . COMPONENT ship) endif() find_program(CURL NAMES curl DOC "Path to the curl program. Used to download files.")