Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cmake install dir so that homebrew can auto-detect it #148

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

RandomPrototypes
Copy link
Contributor

Hello,
I created a local homebrew repository to simplify the install of screen_capture_lite in one of my projects on MacOS.
You can see the homebrew formula here if you are interested : screen_capture_lite_shared.rb
The library can be install by the command brew install RandomPrototypes/tap-dev/screen_capture_lite_shared

To make this formula work, I had to do one small modification in the CMakeLists.txt
By changing the cmake folder into lib/cmake/screen_capture_lite_shared/ or lib/cmake/screen_capture_lite_static/ instead of lib/cmake/screen_capture_lite/, it allows to auto detect the library when calling find_package(screen_capture_lite_shared REQUIRED) without having to specify the install folder.

@smasherprog smasherprog merged commit 1170d57 into smasherprog:master Aug 14, 2023
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