Skip to content

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

@dreirund

Description

@dreirund

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions