Skip to content

feat: enhanced third-party integrations#1632

Open
Cyberhan123 wants to merge 2 commits into
leejet:masterfrom
Cyberhan123:cmake
Open

feat: enhanced third-party integrations#1632
Cyberhan123 wants to merge 2 commits into
leejet:masterfrom
Cyberhan123:cmake

Conversation

@Cyberhan123

@Cyberhan123 Cyberhan123 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This is part of #1368. I've separated it and enhanced the CMake and pkg-config integration capabilities separately. However, if you want to release pkg-config, you may still need to test it.

Summary

This pull request adds installation support and package configuration for the project, making it easier for users to install and use the library via CMake and pkg-config. The changes introduce CMake configuration files, pkg-config support, and proper installation of headers and libraries.

Installation and packaging improvements:

  • Added installation rules to CMakeLists.txt for headers, libraries, and binaries, and configured installation directories using CMake variables. Also included generation and installation of CMake package config files and a pkg-config .pc file.
  • Introduced cmake/stable-diffusion-config.cmake.in, a CMake package configuration template, to allow downstream projects to easily find and use the stable-diffusion library via find_package. This includes versioning, dependency handling, and imported target setup.
  • Added cmake/stable-diffusion.pc.in to provide pkg-config support, enabling other build systems to discover the library and its dependencies.

Checklist

Copilot AI review requested due to automatic review settings June 11, 2026 03:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds packaging/install support so consumers can discover and link the library via CMake find_package() and pkg-config.

Changes:

  • Introduces pkg-config file template (stable-diffusion.pc.in) for downstream builds.
  • Adds CMake package config template (stable-diffusion-config.cmake.in) to expose an imported target and variables.
  • Extends CMakeLists.txt with install rules to generate/install the config + version files and the .pc file.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
cmake/stable-diffusion.pc.in Adds pkg-config metadata for stable-diffusion and its link flags
cmake/stable-diffusion-config.cmake.in Adds CMake package config to expose include/lib dirs and an imported target
CMakeLists.txt Adds generation + installation of CMake package files and pkg-config file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt
Comment thread cmake/stable-diffusion-config.cmake.in
Comment thread cmake/stable-diffusion-config.cmake.in Outdated
Comment thread cmake/stable-diffusion.pc.in
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.

2 participants