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

[Linux] Add option to make installation follow file system conventions; not all in one place. #135

Open
dreirund opened this issue Jan 12, 2025 · 1 comment

Comments

@dreirund
Copy link

dreirund commented Jan 12, 2025

Ahoj,

I want to make a package of this for Arch Linux (to use it as a (build time) dependency for other projects, that not each project has to follow the "dirty" habit of pulling in the source on it's own).

I see that -DCMAKE_INSTALL_PREFIX=/usr installs the executables directly unter /usr, and the assets under /usr/assets and so on. Not suitable for packaging.

Can you make an option to install in a way following Linux filesystem conventions?:

  • Executables into [prefix]/bin/
  • Assets into [prefix]/share/hello_imgui/
  • Libraries into [prefix]/lib/ or [prefix]/lib/hello_imgui/
  • Include files into [prefix]/include/ or [prefix]/include/hello_imgui/
  • CMake files into [prefix]/share/cmake/hello_imgui/
  • Documentation into [prefix]/share/doc/hello_imgui/
  • Example executables maybe also into [prefix]/share/doc/hello_imgui/examples/ or so
  • Man pages into [prefix]/share/man/man[#]/

etc.

Like HDRView did introduce in this commit, following a note in this issue.

Regards!

@pthom
Copy link
Owner

pthom commented Jan 29, 2025

Hello,

I'll study this a bit later. This requires careful consideration, so it might take a while.

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

No branches or pull requests

2 participants