Closed cia1099 closed 4 years ago
Add
#define CVPLOT_HEADER_ONLY
to your main.cpp before including cvplot. Or add
target_compile_definitions(myproject PUBLIC CVPLOT_HEADER_ONLY)
to your CMakeLists.txt.
Sorry, This was missing in the documentation.
Hi, I write my project CMakeLists.txt as
The Cmake configuration and generation can be done, and the context of "#include <CvPlot/cvplot.h>" can be find in main.cpp I am sure that the functions of cvplot.h have been declared and there is codeIntelligent support in my IDE. But when I was building myproject, there are errors which show:
I wonder know how to write CMakeLists.txt to get these implementation code such as "*.ipp" files to get successful building?