我id3lib.dll
在 Windows C++ CMake 项目中使用时遇到问题。我在 C++ 方面有一些经验,但我从未尝试.dll
在我的项目中包含使用文件。我还没有看到任何关于如何在项目中包含 dll 的 id3lib 文档。我已经看到了一些关于如何在 CMake 中包含 dll 的通用答案,但我无法使其工作。我收到此错误:
C:\...\main.cpp:3:21: fatal error: id3/tag.h: No such file or directory
#include <id3/tag.h>
我在 CMake 中尝试过,但没有找到库:
# 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()