pre-commit-ci[bot] 6d05e42a8a [pre-commit.ci] Pre-commit autoupdate. (#186)
updates:
- [github.com/pre-commit/mirrors-clang-format: v22.1.2 → v22.1.5](https://github.com/pre-commit/mirrors-clang-format/compare/v22.1.2...v22.1.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-07-08 10:35:20 +02:00
2025-05-29 10:56:10 +02:00
2023-07-09 18:04:25 +02:00
2023-07-09 18:04:25 +02:00
2025-05-29 10:56:10 +02:00
2025-05-29 12:46:00 +02:00
2025-05-29 10:56:10 +02:00
2025-05-29 10:56:10 +02:00
2026-04-15 09:25:08 +02:00

modorganizer-uibase

Build status ![Lint status]](https://github.com/ModOrganizer2/modorganizer-uibase/actions)

How to build?

# set to the appropriate path for Qt
$env:QT_ROOT = "C:\Qt\6.7.0\msvc2019_64"

# set to the appropriate path for VCPKG
$env:VCPKG_ROOT = "C:\vcpkg"

cmake --preset vs2022-windows "-DCMAKE_PREFIX_PATH=$env:QT_ROOT" `
    -DCMAKE_INSTALL_PREFIX=install `
    -DBUILD_TESTING=ON

# build uibase
cmake --build vsbuild --config RelWithDebInfo

# install uibase
cmake --install vsbuild --config RelWithDebInfo

# test uibase
ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure

Check CMakePresets.json for some predefined values. Extra options include:

  • BUILD_TESTING - if specified, build tests for UIBase, requires the VCPKG testing feature to be enabled (enabled in the preset).

How to use?

As a VCPKG dependency

Not implemented yet.

As a CMake target

Once the CMake targets for uibase are generated (see How to build?), you can include mo2::uibase in your project:

  1. Add install/lib to your CMAKE_PREFIX_PATH (replace install by the install location specified during build).
  2. Use uibase in your CMakeLists.txt:
find_package(mo2-uibase CONFIG REQUIRED)

add_library(myplugin SHARED)

target_link_libraries(myplugin PRIVATE mo2::uibase)
S
Description
No description provided
Readme
1.8 MiB
Languages
C++ 98.7%
CMake 1.3%