mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
add_tomahawk_plugin: port zeroconf account
This commit is contained in:
@@ -1,47 +1,13 @@
|
|||||||
project( tomahawk )
|
|
||||||
|
|
||||||
include( ${QT_USE_FILE} )
|
add_tomahawk_plugin(zeroconf
|
||||||
add_definitions( ${QT_DEFINITIONS} )
|
TYPE account
|
||||||
add_definitions( -DQT_PLUGIN )
|
EXPORT_MACRO ACCOUNTDLLEXPORT_PRO
|
||||||
add_definitions( -DQT_SHARED )
|
SOURCES
|
||||||
add_definitions( -DACCOUNTDLLEXPORT_PRO )
|
TomahawkZeroconf.h
|
||||||
|
|
||||||
set( zeroconfSources
|
|
||||||
Zeroconf.cpp
|
Zeroconf.cpp
|
||||||
ZeroconfAccount.cpp
|
ZeroconfAccount.cpp
|
||||||
)
|
UI
|
||||||
|
ConfigWidget.ui
|
||||||
set( zeroconfHeaders
|
LINK_LIBRARIES
|
||||||
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}
|
${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} )
|
|
||||||
|
Reference in New Issue
Block a user