aboutsummaryrefslogtreecommitdiff
path: root/libs/rootbuilder_native/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 07:20:42 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-12 07:20:42 -0500
commit06826ca53dd54e73169514b3de2f81f2a7ca31f4 (patch)
treedc2d91797aef6d3a979ae9e136684b73d7ea868a /libs/rootbuilder_native/src/CMakeLists.txt
parent755698f1adceef55f52c8e44c9746537885c9bf7 (diff)
Add native Root Builder and OMOD Installer plugins
- libs/rootbuilder_native/: Native C++ port of rootbuilder.py (IPluginTool) - Root/ dir scanning, copy (reflink/CoW) and symlink modes - JSON manifest tracking, backup/restore, auto-deploy hooks - Legacy migration and third-party conflict detection - libs/installer_omod_native/: Native C++ port of installer_omod.py - Handles .omod archives (Oblivion Mod Manager format) - Binary config parsing, .NET string format, CRC file parsing - zlib raw deflate and LZMA decompression - Repackages to zip for MO2's installation manager - Added both to build-inner.sh plugin packaging Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/rootbuilder_native/src/CMakeLists.txt')
-rw-r--r--libs/rootbuilder_native/src/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/rootbuilder_native/src/CMakeLists.txt b/libs/rootbuilder_native/src/CMakeLists.txt
new file mode 100644
index 0000000..438c068
--- /dev/null
+++ b/libs/rootbuilder_native/src/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.16)
+
+find_package(Qt6 REQUIRED COMPONENTS Widgets)
+qt_standard_project_setup()
+
+file(GLOB SOURCES *.cpp *.h)
+
+add_library(rootbuilder_native SHARED ${SOURCES})
+
+set_target_properties(rootbuilder_native PROPERTIES
+ AUTOMOC ON
+ CXX_STANDARD 23
+ CXX_STANDARD_REQUIRED ON
+ PREFIX "lib"
+)
+
+target_link_libraries(rootbuilder_native PRIVATE mo2::uibase Qt6::Widgets)
+install(TARGETS rootbuilder_native LIBRARY DESTINATION bin/plugins)