1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

add_tomahawk_plugin: port zeroconf account

This commit is contained in:
Dominik Schmidt 2012-05-14 03:23:28 +02:00
parent d2c8196b07
commit 027c716fd7

View File

@ -1,47 +1,13 @@
project( tomahawk )
include( ${QT_USE_FILE} )
add_definitions( ${QT_DEFINITIONS} )
add_definitions( -DQT_PLUGIN )
add_definitions( -DQT_SHARED )
add_definitions( -DACCOUNTDLLEXPORT_PRO )
set( zeroconfSources
add_tomahawk_plugin(zeroconf
TYPE account
EXPORT_MACRO ACCOUNTDLLEXPORT_PRO
SOURCES
TomahawkZeroconf.h
Zeroconf.cpp
ZeroconfAccount.cpp
UI
ConfigWidget.ui
LINK_LIBRARIES
${TOMAHAWK_LIBRARIES}
)
set( zeroconfHeaders
Zeroconf.h
TomahawkZeroconf.h
ZeroconfAccount.h
)
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
${QT_INCLUDE_DIR}
)
qt4_wrap_ui( UI_SRCS ConfigWidget.ui )
qt4_add_resources( RC_SRCS "resources.qrc" )
qt4_wrap_cpp( zeroconfMoc ${zeroconfHeaders} )
add_library( tomahawk_account_zeroconf SHARED ${zeroconfSources} ${zeroconfMoc} ${RC_SRCS} ${UI_SRCS} )
IF( WIN32 )
SET( OS_SPECIFIC_LINK_LIBRARIES
${OS_SPECIFIC_LINK_LIBRARIES}
"winmm.dll"
"iphlpapi.a"
)
ENDIF( WIN32 )
target_link_libraries( tomahawk_account_zeroconf
${QT_LIBRARIES}
${OS_SPECIFIC_LINK_LIBRARIES}
${TOMAHAWK_LIBRARIES}
)
IF( APPLE )
# SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
ENDIF( APPLE )
install( TARGETS tomahawk_account_zeroconf DESTINATION ${CMAKE_INSTALL_LIBDIR} )