/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
- project( tomahawk )
- include( ${QT_USE_FILE} )
- add_definitions( ${QT_DEFINITIONS} )
- add_definitions( -DQT_PLUGIN )
- add_definitions( -DQT_SHARED )
- add_definitions( -DSIPDLLEXPORT_PRO )
- set( zeroconfSources
- zeroconf.cpp
- )
- set( zeroconfHeaders
- zeroconf.h
- tomahawkzeroconf.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_sipzeroconf 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_sipzeroconf
- ${QT_LIBRARIES}
- ${OS_SPECIFIC_LINK_LIBRARIES}
- ${TOMAHAWK_LIBRARIES}
- )
- IF( APPLE )
- # SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
- ENDIF( APPLE )
- install( TARGETS tomahawk_sipzeroconf DESTINATION ${CMAKE_INSTALL_LIBDIR} )