aboutsummaryrefslogtreecommitdiff
path: root/libs/lootcli/CMakeLists.txt
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-11 02:37:39 -0600
commit7ee008e150bc5bcf76082d726f719ee0fdfda982 (patch)
tree27fb39be241fdb5ac2734c574de678977d1856d0 /libs/lootcli/CMakeLists.txt
Fluorine Manager: full Linux port of Mod Organizer 2
Complete native Linux port with FUSE-based virtual filesystem, Proton/umu-run integration, and Flatpak packaging. Key features: - FUSE VFS replacing Windows USVFS (in-process + standalone helper for Flatpak) - Proton/GE-Proton/umu-run launcher with env var forwarding - Flatpak support (sandbox-aware VFS, NXM handler, umu-run) - Wine prefix management UI - Case-insensitive path resolution for Linux filesystems - QSettings-safe INI handling (avoids Bethesda INI corruption) - Portable instance support with auto-generated launcher scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/lootcli/CMakeLists.txt')
-rw-r--r--libs/lootcli/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/lootcli/CMakeLists.txt b/libs/lootcli/CMakeLists.txt
new file mode 100644
index 0000000..35e9d98
--- /dev/null
+++ b/libs/lootcli/CMakeLists.txt
@@ -0,0 +1,32 @@
+cmake_minimum_required(VERSION 3.16)
+
+include(CMakePackageConfigHelpers)
+
+project(lootcli)
+
+add_subdirectory(src)
+
+# install the header helper
+configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.cmake.in
+ "${CMAKE_CURRENT_BINARY_DIR}/mo2-lootcli-header-config.cmake"
+ INSTALL_DESTINATION "lib/cmake/mo2-lootcli-header"
+ NO_SET_AND_CHECK_MACRO
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO
+)
+
+file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/version.h" lootcli_version)
+string(REGEX MATCH "#define LOOTCLI_VERSION_STRING[ \t]*\"([0-9.]+)\"" _ ${lootcli_version})
+set(lootcli_version ${CMAKE_MATCH_1})
+
+write_basic_package_version_file(
+ "${CMAKE_CURRENT_BINARY_DIR}/mo2-lootcli-header-config-version.cmake"
+ VERSION "${lootcli_version}"
+ COMPATIBILITY AnyNewerVersion
+ ARCH_INDEPENDENT
+)
+
+install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/mo2-lootcli-header-config.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/mo2-lootcli-header-config-version.cmake
+ DESTINATION lib/cmake/mo2-lootcli-header
+)