![Lint status]](https://github.com/ModOrganizer2/modorganizer-uibase/actions)
# 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-failureCheck CMakePresets.json for some predefined values. Extra options
include:
BUILD_TESTING- if specified, build tests for UIBase, requires the VCPKGtestingfeature to be enabled (enabled in the preset).
Not implemented yet.
Once the CMake targets for uibase are generated (see How to build?), you can include
mo2::uibase in your project:
- Add
install/libto yourCMAKE_PREFIX_PATH(replaceinstallby the install location specified during build). - Use
uibasein yourCMakeLists.txt:
find_package(mo2-uibase CONFIG REQUIRED)
add_library(myplugin SHARED)
target_link_libraries(myplugin PRIVATE mo2::uibase)