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

CMakeLists include for install space #25

Open
weidingerc opened this issue Dec 7, 2021 · 1 comment
Open

CMakeLists include for install space #25

weidingerc opened this issue Dec 7, 2021 · 1 comment

Comments

@weidingerc
Copy link

weidingerc commented Dec 7, 2021

Hi,
I would like to use your library after creating an install space.
I followed your instructions for header-only use and I currently include your lib in my CMakeLists File with the path:

include_directories("/home/user/Documents/git/libraries/cv-plot/CvPlot/inc")
and a compile definition for my target that uses the lib:

target_compile_definitions(target_test
        PUBLIC CVPLOT_HEADER_ONLY
        )

It all works when I run the target locally.
But when I want to create an install space, non of the header files are copied to my install space, which is needed, if I want to copy the install folder on other platforms.

Do you know how to properly include your lib in CMakeLists?

@wpalfi
Copy link
Collaborator

wpalfi commented Dec 7, 2021

Hi c-w-94,
I dont use cmake install a lot and I dont really understand your use case. Please give me a complete minimal example to reproduce the problem.

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