PageRenderTime 81ms CodeModel.GetById 39ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

/src/sip/twitter/CMakeLists.txt

http://github.com/tomahawk-player/tomahawk
CMake | 54 lines | 43 code | 10 blank | 1 comment | 0 complexity | a1a71c172ab8d58e4e23c4328096c613 MD5 | raw file
 1project( tomahawk )
 2
 3include( ${QT_USE_FILE} )
 4add_definitions( ${QT_DEFINITIONS} )
 5add_definitions( -DQT_PLUGIN )
 6add_definitions( -DQT_SHARED )
 7add_definitions( -DSIPDLLEXPORT_PRO )
 8
 9set( twitterSources
10    twitter.cpp
11    twitterconfigwidget.cpp
12    tomahawkoauthtwitter.cpp
13)
14
15set( twitterHeaders
16    twitter.h
17    twitterconfigwidget.h
18    tomahawkoauthtwitter.h
19)
20
21set( twitterUI
22    twitterconfigwidget.ui
23)
24
25include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
26   ${QT_INCLUDE_DIR}
27   ${QTWEETLIB_INCLUDE_DIR}
28)
29
30qt4_add_resources( RC_SRCS "resources.qrc" )
31qt4_wrap_cpp( twitterMoc ${twitterHeaders} )
32qt4_wrap_ui( twitterUI_H ${twitterUI} )
33add_library( tomahawk_siptwitter SHARED ${twitterUI_H} ${twitterSources} ${twitterMoc} ${RC_SRCS} )
34
35IF( WIN32 )
36SET( OS_SPECIFIC_LINK_LIBRARIES
37        ${OS_SPECIFIC_LINK_LIBRARIES}
38        "winmm.dll"
39        "iphlpapi.a"
40)
41ENDIF( WIN32 )
42
43target_link_libraries( tomahawk_siptwitter
44    ${TOMAHAWK_LIBRARIES}
45    ${QTWEETLIB_LIBRARIES}
46    ${QT_LIBRARIES}
47    ${OS_SPECIFIC_LINK_LIBRARIES}
48)
49
50IF( APPLE )
51#  SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
52ENDIF( APPLE )
53
54install( TARGETS tomahawk_siptwitter DESTINATION ${CMAKE_INSTALL_LIBDIR} )