PageRenderTime 162ms CodeModel.GetById 71ms app.highlight 0ms RepoModel.GetById 90ms app.codeStats 0ms

/src/sip/zeroconf/CMakeLists.txt

http://github.com/tomahawk-player/tomahawk
CMake | 45 lines | 35 code | 9 blank | 1 comment | 0 complexity | 7a65f933485d9de62811dcbb2381e581 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( zeroconfSources
10        zeroconf.cpp
11)
12
13set( zeroconfHeaders
14	zeroconf.h
15	tomahawkzeroconf.h
16)
17
18include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
19   ${QT_INCLUDE_DIR}
20)
21
22qt4_wrap_ui( UI_SRCS configwidget.ui )
23qt4_add_resources( RC_SRCS "resources.qrc" )
24qt4_wrap_cpp( zeroconfMoc ${zeroconfHeaders} )
25add_library( tomahawk_sipzeroconf SHARED ${zeroconfSources} ${zeroconfMoc} ${RC_SRCS} ${UI_SRCS} )
26
27IF( WIN32 )
28SET( OS_SPECIFIC_LINK_LIBRARIES
29	${OS_SPECIFIC_LINK_LIBRARIES}
30	"winmm.dll"
31    "iphlpapi.a"
32)
33ENDIF( WIN32 )
34
35target_link_libraries( tomahawk_sipzeroconf
36	${QT_LIBRARIES}
37	${OS_SPECIFIC_LINK_LIBRARIES}
38	${TOMAHAWK_LIBRARIES}
39)
40
41IF( APPLE )
42#  SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
43ENDIF( APPLE )
44
45install( TARGETS tomahawk_sipzeroconf DESTINATION ${CMAKE_INSTALL_LIBDIR} )