I tried to follow this guide but I’m having trouble understanding it. Would I not simply give the path to the library were it is on my system?
I’ve created a file FindWebP.cmake
with this content:
FindWebP
--------
WebP_INCLUDE_DIRS=/opt/local/include/
WebP_LIBRARIES=/opt/local/lib/
This doesn’t even produce an error but is completely ignored. Yes, I put the file in the folder that I exported for CMAKE_MODULE_PATH
.
Reading the guide above it seems like it’s actually a lot more complicated. What’s the point of calling find_package
again in the FindWebP.cmake
file?