mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 12:20:45 +02:00
add_tomahawk_plugin: port twitter account
This commit is contained in:
@@ -1,58 +1,19 @@
|
|||||||
project( tomahawk )
|
|
||||||
|
|
||||||
include( ${QT_USE_FILE} )
|
include_directories(${QTWEETLIB_INCLUDE_DIR})
|
||||||
add_definitions( ${QT_DEFINITIONS} )
|
|
||||||
add_definitions( -DQT_PLUGIN )
|
|
||||||
add_definitions( -DQT_SHARED )
|
|
||||||
add_definitions( -DACCOUNTDLLEXPORT_PRO )
|
|
||||||
|
|
||||||
set( twitterAccountSources
|
add_tomahawk_plugin(twitter
|
||||||
|
TYPE account
|
||||||
|
EXPORT_MACRO ACCOUNTDLLEXPORT_PRO
|
||||||
|
SOURCES
|
||||||
TwitterAccount.cpp
|
TwitterAccount.cpp
|
||||||
TwitterInfoPlugin.cpp
|
TwitterInfoPlugin.cpp
|
||||||
TwitterConfigWidget.cpp
|
TwitterConfigWidget.cpp
|
||||||
TomahawkOAuthTwitter.cpp
|
TomahawkOAuthTwitter.cpp
|
||||||
sip/TwitterSip.cpp
|
sip/TwitterSip.cpp
|
||||||
)
|
UI
|
||||||
|
|
||||||
set( twitterAccountHeaders
|
|
||||||
TwitterAccount.h
|
|
||||||
TwitterInfoPlugin.h
|
|
||||||
TwitterConfigWidget.h
|
|
||||||
TomahawkOAuthTwitter.h
|
|
||||||
sip/TwitterSip.h
|
|
||||||
)
|
|
||||||
|
|
||||||
set( twitterAccountUI
|
|
||||||
TwitterConfigWidget.ui
|
TwitterConfigWidget.ui
|
||||||
)
|
LINK_LIBRARIES
|
||||||
|
|
||||||
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
|
|
||||||
${QT_INCLUDE_DIR}
|
|
||||||
${QTWEETLIB_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
qt4_wrap_cpp( twitterAccountMoc ${twitterAccountHeaders} )
|
|
||||||
qt4_wrap_ui( twitterAccountUI_H ${twitterAccountUI} )
|
|
||||||
qt4_add_resources( RC_SRCS "resources.qrc" )
|
|
||||||
add_library( tomahawk_account_twitter SHARED ${twitterAccountUI_H} ${twitterAccountSources} ${twitterAccountMoc} ${RC_SRCS} )
|
|
||||||
|
|
||||||
IF( WIN32 )
|
|
||||||
SET( OS_SPECIFIC_LINK_LIBRARIES
|
|
||||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
|
||||||
"winmm.dll"
|
|
||||||
"iphlpapi.a"
|
|
||||||
)
|
|
||||||
ENDIF( WIN32 )
|
|
||||||
|
|
||||||
target_link_libraries( tomahawk_account_twitter
|
|
||||||
${TOMAHAWK_LIBRARIES}
|
${TOMAHAWK_LIBRARIES}
|
||||||
${QTWEETLIB_LIBRARIES}
|
${QTWEETLIB_LIBRARIES}
|
||||||
${QT_LIBRARIES}
|
|
||||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
IF( APPLE )
|
|
||||||
# SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
|
|
||||||
ENDIF( APPLE )
|
|
||||||
|
|
||||||
install( TARGETS tomahawk_account_twitter DESTINATION ${CMAKE_INSTALL_LIBDIR} )
|
|
||||||
|
Reference in New Issue
Block a user