mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-28 11:42:42 +01:00
Thumbbuttons are a feature that is not supported by older MINGW libraries. So check if the feature is available before using it.
38 lines
708 B
CMake
38 lines
708 B
CMake
SET( CMAKE_BUILD_TYPE "Release" )
|
|
|
|
ADD_DEFINITIONS( /DNOMINMAX )
|
|
ADD_DEFINITIONS( /DWIN32_LEAN_AND_MEAN )
|
|
ADD_DEFINITIONS( -static-libgcc )
|
|
ADD_DEFINITIONS( -DUNICODE )
|
|
|
|
SET( QXTWEB_LIBRARIES qxtweb-standalone )
|
|
|
|
# Check for the availability of the Thumbbutton
|
|
|
|
check_cxx_source_compiles( "
|
|
#include <shobjidl.h>
|
|
int main() {
|
|
THUMBBUTTON foo;
|
|
return 0;
|
|
}
|
|
"
|
|
HAVE_THUMBBUTTON )
|
|
|
|
SET( OS_SPECIFIC_LINK_LIBRARIES
|
|
${OS_SPECIFIC_LINK_LIBRARIES}
|
|
|
|
${QTSPARKLE_LIBRARIES}
|
|
|
|
# third party shipped with tomahawk
|
|
|
|
# system libs
|
|
"secur32.dll"
|
|
"crypt32.dll"
|
|
"iphlpapi.a"
|
|
"ws2_32.dll"
|
|
"dnsapi.dll"
|
|
"dsound.dll"
|
|
"winmm.dll"
|
|
"advapi32.dll"
|
|
)
|