Skip to content

cmake: export an installable pdg package - #4

Open
zbb2005 wants to merge 1 commit into
Krataios14:mainfrom
zbb2005:codex/pdg-cmake-package-config
Open

cmake: export an installable pdg package#4
zbb2005 wants to merge 1 commit into
Krataios14:mainfrom
zbb2005:codex/pdg-cmake-package-config

Conversation

@zbb2005

@zbb2005 zbb2005 commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • install pdg targets and package config files using GNUInstallDirs
  • export the pdg::pdg target and restore the public Threads dependency
  • add an install-and-consume test that configures a separate project with find_package(pdg 0.1 CONFIG REQUIRED)
  • document installed-package usage

Validation

  • cmake -S . -B build-contributor -G Ninja -DCMAKE_BUILD_TYPE=Release
  • cmake --build build-contributor --parallel
  • ctest --test-dir build-contributor -C Release --output-on-failure
  • 6/6 tests passed on Windows with MSVC 19.42 and CMake 3.29.5
  • verified installed CMake files contain no source-tree or build-tree paths
  • Linux and macOS coverage will run through the repository CI matrix

Closes #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the installed library consumable with find_package(pdg)

1 participant