/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

  1. project( tomahawk )
  2. include( ${QT_USE_FILE} )
  3. add_definitions( ${QT_DEFINITIONS} )
  4. add_definitions( -DQT_PLUGIN )
  5. add_definitions( -DQT_SHARED )
  6. add_definitions( -DSIPDLLEXPORT_PRO )
  7. set( zeroconfSources
  8. zeroconf.cpp
  9. )
  10. set( zeroconfHeaders
  11. zeroconf.h
  12. tomahawkzeroconf.h
  13. )
  14. include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
  15. ${QT_INCLUDE_DIR}
  16. )
  17. qt4_wrap_ui( UI_SRCS configwidget.ui )
  18. qt4_add_resources( RC_SRCS "resources.qrc" )
  19. qt4_wrap_cpp( zeroconfMoc ${zeroconfHeaders} )
  20. add_library( tomahawk_sipzeroconf SHARED ${zeroconfSources} ${zeroconfMoc} ${RC_SRCS} ${UI_SRCS} )
  21. IF( WIN32 )
  22. SET( OS_SPECIFIC_LINK_LIBRARIES
  23. ${OS_SPECIFIC_LINK_LIBRARIES}
  24. "winmm.dll"
  25. "iphlpapi.a"
  26. )
  27. ENDIF( WIN32 )
  28. target_link_libraries( tomahawk_sipzeroconf
  29. ${QT_LIBRARIES}
  30. ${OS_SPECIFIC_LINK_LIBRARIES}
  31. ${TOMAHAWK_LIBRARIES}
  32. )
  33. IF( APPLE )
  34. # SET( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-undefined dynamic_lookup" )
  35. ENDIF( APPLE )
  36. install( TARGETS tomahawk_sipzeroconf DESTINATION ${CMAKE_INSTALL_LIBDIR} )