mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-18 06:48:23 +01:00
build liblastfm2 statically on non-win32, and don't build fingerprinter.
got multiple reports of tomahawk not finding liblastfm2 due to rpath or other issues, and we are building our o ther 3rdparty deps statically like this.
This commit is contained in:
parent
db4f514181
commit
ecd8b302c4
2
thirdparty/liblastfm2/CMakeLists.txt
vendored
2
thirdparty/liblastfm2/CMakeLists.txt
vendored
@ -17,7 +17,7 @@ include(${QT_USE_FILE})
|
||||
add_subdirectory(src)
|
||||
|
||||
# Optionally build the fingerprint library
|
||||
option(BUILD_FINGERPRINT "Build the lastfm-fingerprint library" ON)
|
||||
option(BUILD_FINGERPRINT "Build the lastfm-fingerprint library" OFF)
|
||||
find_package(LibSamplerate)
|
||||
find_package(LibFFTW3)
|
||||
|
||||
|
29
thirdparty/liblastfm2/src/CMakeLists.txt
vendored
29
thirdparty/liblastfm2/src/CMakeLists.txt
vendored
@ -84,10 +84,18 @@ endif(WIN32)
|
||||
|
||||
qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})
|
||||
|
||||
add_library(tomahawk_lastfm2 SHARED
|
||||
${SOURCES}
|
||||
${MOC_SOURCES}
|
||||
)
|
||||
IF( WIN32 )
|
||||
add_library(tomahawk_lastfm2 SHARED
|
||||
${SOURCES}
|
||||
${MOC_SOURCES}
|
||||
)
|
||||
ELSE()
|
||||
add_definitions(-fPIC)
|
||||
add_library(tomahawk_lastfm2 STATIC
|
||||
${SOURCES}
|
||||
${MOC_SOURCES}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
target_link_libraries(tomahawk_lastfm2
|
||||
${QT_LIBRARIES}
|
||||
@ -103,8 +111,11 @@ if(APPLE)
|
||||
)
|
||||
endif(APPLE)
|
||||
|
||||
install(TARGETS tomahawk_lastfm2
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
)
|
||||
|
||||
IF( WIN32 )
|
||||
install(TARGETS tomahawk_lastfm2
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
)
|
||||
ENDIF()
|
||||
|
Loading…
x
Reference in New Issue
Block a user