I have a problem using id3lib.dll
in a Windows C++ CMake project. I have some experience in C++ but I have never tried to include use .dll
file in my project. I have not seen any id3lib documentation on how to include dll in your project. I have seen some generic answers on how to include a dll with CMake but I couldn't make it work. I get this error:
C:\...\main.cpp:3:21: fatal error: id3/tag.h: No such file or directory
#include <id3/tag.h>
I have tried this in CMake but library wasn't found:
# searching for include directory
find_path(ID3_INCLUDE_DIR id3/tag.h)
# searching for library file
find_library(ID3_LIBRARY id3)
if (ID3_INCLUDE_DIR)
message(" found lib")
endif()