Added FindShlwapi.cmake in lieu of pragma comment() in fileref.h.

This commit is contained in:
Festus Hagen
2013-05-25 01:51:26 -04:00
parent 54fbe15611
commit b3f3eeeec7
4 changed files with 32 additions and 4 deletions

8
taglib/CMakeLists.txt Normal file → Executable file
View 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
View File

@ -32,10 +32,6 @@
#include "taglib_export.h"
#include "audioproperties.h"
#if _WIN32
# pragma comment(lib, "shlwapi.lib")
#endif
namespace TagLib {
class Tag;