Profactor / cv-plot

fast modular opencv plotting library
MIT License
154 stars 28 forks source link

CMakeLists include for install space #25

Open weidingerc opened 2 years ago

weidingerc commented 2 years ago

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 commented 2 years ago

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.