mirror of
https://github.com/taglib/taglib.git
synced 2025-11-17 07:02:53 -05:00
Added FindShlwapi.cmake in lieu of pragma comment() in fileref.h.
This commit is contained in:
8
taglib/CMakeLists.txt
Normal file → Executable file
8
taglib/CMakeLists.txt
Normal file → Executable file
@ -30,6 +30,10 @@ if(ZLIB_FOUND)
|
||||
include_directories(${ZLIB_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(SHLWAPI_FOUND)
|
||||
include_directories(${SHLWAPI_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
set(tag_HDRS
|
||||
tag.h
|
||||
fileref.h
|
||||
@ -311,6 +315,10 @@ if(ZLIB_FOUND)
|
||||
target_link_libraries(tag ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(SHLWAPI_FOUND)
|
||||
target_link_libraries(tag ${SHLWAPI_LIBRARIES})
|
||||
endif()
|
||||
|
||||
set_target_properties(tag PROPERTIES
|
||||
VERSION ${TAGLIB_SOVERSION_MAJOR}.${TAGLIB_SOVERSION_MINOR}.${TAGLIB_SOVERSION_PATCH}
|
||||
SOVERSION ${TAGLIB_SOVERSION_MAJOR}
|
||||
|
||||
4
taglib/fileref.h
Normal file → Executable file
4
taglib/fileref.h
Normal file → Executable file
@ -32,10 +32,6 @@
|
||||
#include "taglib_export.h"
|
||||
#include "audioproperties.h"
|
||||
|
||||
#if _WIN32
|
||||
# pragma comment(lib, "shlwapi.lib")
|
||||
#endif
|
||||
|
||||
namespace TagLib {
|
||||
|
||||
class Tag;
|
||||
|
||||
Reference in New Issue
Block a user