diff options
author | Michele Calgaro <[email protected]> | 2023-09-26 21:07:55 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-09-26 23:50:19 +0900 |
commit | 85f5856c5536c97abc0b524bc5ce3cb0b40bab2d (patch) | |
tree | 391f89ebadc495786b1de143378062d36199d62c | |
parent | 147aca7d8e7fe21364884200823577d0b9ade0a4 (diff) | |
download | k3b-85f5856c5536c97abc0b524bc5ce3cb0b40bab2d.tar.gz k3b-85f5856c5536c97abc0b524bc5ce3cb0b40bab2d.zip |
Fix detection and linking of taglib
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | ConfigureChecks.cmake | 1 | ||||
-rw-r--r-- | config.h.cmake | 2 | ||||
-rw-r--r-- | plugins/decoder/flac/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/decoder/mp3/CMakeLists.txt | 4 |
4 files changed, 9 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 7047c34..c607e06 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -183,6 +183,7 @@ if( WITH_TAGLIB ) if( NOT TAGLIB_FOUND ) tde_message_fatal( "taglib is requested, but was not found on your system" ) endif( ) + set( HAVE_TAGLIB 1 ) endif( ) diff --git a/config.h.cmake b/config.h.cmake index 03370d3..c864e46 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -33,3 +33,5 @@ // Don't define HAVE_RESMGR due to it seems to be totally outdated // #cmakedefine HAVE_RESMGR + +#cmakedefine HAVE_TAGLIB diff --git a/plugins/decoder/flac/CMakeLists.txt b/plugins/decoder/flac/CMakeLists.txt index 20e4256..090e3d6 100644 --- a/plugins/decoder/flac/CMakeLists.txt +++ b/plugins/decoder/flac/CMakeLists.txt @@ -18,11 +18,13 @@ include_directories( ${CMAKE_SOURCE_DIR}/libk3bdevice ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${TAGLIB_INCLUDE_DIRS} ) link_directories( ${TQT_LIBRARY_DIRS} ${FLAC_LIBRARY_DIRS} + ${TAGLIB_LIBRARY_DIRS} ) if( ${FLAC_VERSION} VERSION_GREATER "1.1.1" ) @@ -34,7 +36,7 @@ endif( ) tde_add_kpart( libk3bflacdecoder AUTOMOC SOURCES k3bflacdecoder.cpp LINK tdecore-shared k3b-shared k3bdevice-shared - ${FLAC_LIBRARIES} + ${FLAC_LIBRARIES} ${TAGLIB_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/plugins/decoder/mp3/CMakeLists.txt b/plugins/decoder/mp3/CMakeLists.txt index 4b180f5..a04a4e9 100644 --- a/plugins/decoder/mp3/CMakeLists.txt +++ b/plugins/decoder/mp3/CMakeLists.txt @@ -18,11 +18,13 @@ include_directories( ${CMAKE_SOURCE_DIR}/libk3bdevice ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${TAGLIB_INCLUDE_DIRS} ) link_directories( ${TQT_LIBRARY_DIRS} ${MAD_LIBRARY_DIRS} + ${TAGLIB_LIBRARY_DIRS} ) @@ -31,7 +33,7 @@ link_directories( tde_add_kpart( libk3bmaddecoder AUTOMOC SOURCES k3bmad.cpp k3bmaddecoder.cpp LINK tdecore-shared k3b-shared k3bdevice-shared - ${MAD_LIBRARIES} + ${MAD_LIBRARIES} ${TAGLIB_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR} ) |