One installer of OpenMS together with its add-ons: the OpenMS core plus the tools that live in their own repositories and are built against an installed OpenMS of the same version, such as OpenMS-TOPP-GUI (TOPPView, TOPPAS, ...) and OpenMS-MetaProSIP.
Status: pilot. Linux x64, one DEB (or a tarball). Windows (NSIS) and macOS (productbuild, signing, notarization) follow once the Linux package is established.
manifest.json pins each component to a branch, tag or commit. A release pins tags. The
superbuild (CMakeLists.txt, CMake ExternalProject) then:
- builds the core with its own preset and vcpkg and installs it into a staging prefix
(
<build>/stage); - builds each add-on against that staging prefix, exactly as against any installed OpenMS
(
find_package(OpenMS <version> EXACT)), runs its tests, and installs it into the same prefix. Every add-on registers its tools with its ownshare/OpenMS/TOOLS/<name>.tsvnext to the core'sOpenMS.tsv; - tests the staged installation as a whole (
ctest): every tool name is registered once, every registered tool is installed, and every tool starts from the installation with a clean environment (cmake/check_staged_installation.cmake); - with
DIST_PACKAGE_TYPE=deb(ortgz), reconfigures every component with a package type (as the OpenMS release workflow does: build and test withPACKAGE_TYPE=none, then reconfigure and package without relinking) and builds one package from the install components of all of them (CPACK_INSTALL_CMAKE_PROJECTS; the components per project are in the manifest).
The DEB openms-distribution provides, replaces and conflicts with the packages of the single
components (openms, openms-gui, openms-metaprosip).
The build dependencies are those of the components (their tools/ci/deps-*.sh).
cmake -S . -B build -G Ninja -DDIST_PACKAGE_TYPE=debcmake --build buildctest --test-dir build --output-on-failurecmake --build build --target packageOptions:
| Option | Default | |
|---|---|---|
DIST_PACKAGE_TYPE |
none |
deb or tgz for the combined package |
DIST_SOURCE_DIR_<component> |
a local checkout to build instead of the ref of the manifest, e.g. DIST_SOURCE_DIR_OpenMS_MetaProSIP (the name with non-identifier characters replaced by _) |
|
DIST_ENABLE_TESTING |
ON |
run the tests of each add-on before installing it, and the staged-installation test |
DIST_TEST_CORE |
OFF |
also build and run the class and TOPP tests of the core (long) |
DIST_OPENMS_PRESET |
per host | the CMake preset of OpenMS the core is configured with |
DIST_OPENMS_CMAKE_ARGS |
further configure arguments of the core | |
DIST_ADDON_PREFIX_PATH |
further CMAKE_PREFIX_PATH entries of the add-ons (e.g. Qt) |
|
DIST_STAGE_DIR |
<build>/stage |
the staging prefix |
An add-on is a CMake project that
- finds the core with
find_package(OpenMS <version> EXACT CONFIG COMPONENTS CLI), - installs into the core's prefix layout (
bin/,share/OpenMS, ...) and registers its TOPP tools in its ownshare/OpenMS/TOOLS/<name>.tsv, - runs its tests with
ctestagainst the installed core (OPENMS_TOPP_BIN_DIRforFuzzyDiff), - puts what belongs into a package into named install components.
Add it to manifest.json (kind: addon, its packaged_components), and its dependency script
to .github/workflows/build.yml.
BSD 3-Clause, as OpenMS (see LICENSE).