cv-plot icon indicating copy to clipboard operation
cv-plot copied to clipboard

CMakeLists include for install space

Open weidingerc opened this issue 4 years ago • 1 comments

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?

weidingerc avatar Dec 07 '21 09:12 weidingerc

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.

wpalfi avatar Dec 07 '21 09:12 wpalfi