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

/src/sip/jabber/CMakeLists.txt

http://github.com/tomahawk-player/tomahawk
CMake | 71 lines | 58 code | 12 blank | 1 comment | 2 complexity | 99af42582e8f7c103ffd77530203273d 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( jabberSources
10    jabber.cpp
11    tomahawksipmessage.cpp
12    tomahawksipmessagefactory.cpp
13)
14set( jabberSourcesGui
15    avatarmanager.cpp
16    xmlconsole.cpp
17)
18
19set( jabberHeaders
20    jabber.h
21)
22set( jabberHeadersGui
23    avatarmanager.h
24    xmlconsole.h
25)
26
27set( jabberUI
28    configwidget.ui
29    xmlconsole.ui
30)
31
32if(BUILD_GUI)
33    list(APPEND jabberSources ${jabberSourcesGui})
34    list(APPEND jabberHeaders ${jabberHeadersGui})
35endif()
36
37include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
38   ${QT_INCLUDE_DIR}
39   ${LIBJREEN_INCLUDE_DIR}
40)
41
42qt4_add_resources( RC_SRCS "resources.qrc" )
43qt4_wrap_ui( jabberUI_H ${jabberUI} )
44qt4_wrap_cpp( jabberMoc ${jabberHeaders} )
45add_library( tomahawk_sipjabber SHARED ${jabberSources} ${jabberMoc} ${jabberUI_H} ${RC_SRCS} )
46
47IF( WIN32 )
48SET( OS_SPECIFIC_LINK_LIBRARIES
49    ${OS_SPECIFIC_LINK_LIBRARIES}
50    "secur32.dll"
51    "crypt32.dll"
52    ${TOMAHAWK_LIBRARIES}
53)
54ENDIF( WIN32 )
55
56target_link_libraries( tomahawk_sipjabber
57    ${QT_LIBRARIES}
58    ${LIBJREEN_LIBRARY}
59    ${OS_SPECIFIC_LINK_LIBRARIES}
60    tomahawklib
61)
62
63IF( APPLE )
64#  SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
65ENDIF( APPLE )
66
67install( TARGETS tomahawk_sipjabber DESTINATION ${CMAKE_INSTALL_LIBDIR} )
68
69if(BUILD_GUI)
70    add_subdirectory(googlewrapper)
71endif()