CMakeLists: install rules + pkg-config for daedalus_core #1

Merged
marfrit merged 1 commits from noether/installable-pkgconfig into main 2026-05-21 15:53:37 +00:00

1 Commits

Author SHA1 Message Date
claude-noether 47d0107809 CMakeLists: install rules + pkg-config for daedalus_core
Make daedalus_core installable so sibling consumers (Phase 8 V4L2
daemon, future libva-v4l2-request-fourier integration tests, etc.)
can `pkg_check_modules(DAEDALUS REQUIRED daedalus-fourier)` against
a system-installed copy.

Installs:
  - lib/libdaedalus_core.a
  - include/daedalus.h
  - lib/pkgconfig/daedalus-fourier.pc
  - share/daedalus-fourier/shaders/*.spv  (only when
    DAEDALUS_BUILD_VULKAN is ON; consumers using
    daedalus_ctx_create_no_qpu() don't need them)

pkg-config surfaces the static-archive transitive deps via
Libs.private (-lpthread -ldl -lm) and Requires.private (vulkan),
so a consumer doing `pkg-config --static --libs daedalus-fourier`
gets the full link line.  Non-static consumers (using the
no_qpu path) get just `-ldaedalus_core`.

No behaviour change to existing tests / benches.

Verified on hertz (Pi 5, dev host): clean build, all 7 SPIR-V
shaders + the static lib + the header + the .pc file land in
the install prefix.
2026-05-21 17:49:49 +02:00