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

Install header directory preserving the original hierarchy #8

Open
claudiofantacci opened this issue May 10, 2017 · 1 comment
Open

Comments

@claudiofantacci
Copy link
Collaborator

claudiofantacci commented May 10, 2017

The current version of the LibTemplateCmake CMakeLists.txt uses PUBLIC_HEADER to list and install the header of the library.
While this approach is clean and straightforward, the process does not preserve the header folder hierarchy and, instead, install all header files in the same directory.

A simple workaround is to delete PUBLIC_HEADER property and use a install(DIRECTORY /path/of/include/dir DESTINATION /install/path/of/include/dir).

Is this solution sufficiently clean and satisfactory for most of the situation?
While this solution works smoothly, it undermines how to (I quote):

Specify public header files in a FRAMEWORK shared library target.

@jkoutavas
Copy link

This may be useful too: https://gitlab.kitware.com/cmake/cmake/-/issues/16739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants