CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. INCLUDE(PolycodeIncludes)
  2. SET(polycodeTUIO_SRCS
  3. Source/IpEndpointName.cpp
  4. Source/OscOutboundPacketStream.cpp
  5. Source/OscPrintReceivedElements.cpp
  6. Source/OscReceivedElements.cpp
  7. Source/OscTypes.cpp
  8. Source/TuioClient.cpp
  9. Source/TUIOInputModule.cpp
  10. Source/TuioServer.cpp
  11. Source/TuioTime.cpp
  12. )
  13. SET(polycodeTUIO_HDRS
  14. Include/TuioClient.h
  15. Include/TuioContainer.h
  16. Include/TuioCursor.h
  17. Include/TUIOInputModule.h
  18. Include/TuioListener.h
  19. Include/TuioObject.h
  20. Include/TuioPoint.h
  21. Include/TuioServer.h
  22. Include/TuioTime.h
  23. )
  24. IF(MSVC)
  25. LIST(APPEND polycodeTUIO_SRCS Source/win32/NetworkingUtils.cpp)
  26. LIST(APPEND polycodeTUIO_SRCS Source/win32/UdpSocket.cpp)
  27. ELSE(MSVC)
  28. LIST(APPEND polycodeTUIO_SRCS Source/posix/NetworkingUtils.cpp)
  29. LIST(APPEND polycodeTUIO_SRCS Source/posix/UdpSocket.cpp)
  30. ENDIF(MSVC)
  31. INCLUDE_DIRECTORIES(
  32. Include
  33. Include/osc
  34. Include/ip
  35. )
  36. SET(CMAKE_DEBUG_POSTFIX "_d")
  37. ADD_LIBRARY(PolycodeTUIO ${polycodeTUIO_SRCS} ${polycodeTUIO_HDRS})
  38. TARGET_LINK_LIBRARIES(PolycodeTUIO
  39. Polycore
  40. ${BOX2D_LIBRARIES}
  41. ${OPENGL_LIBRARIES}
  42. ${OPENAL_LIBRARY}
  43. ${PNG_LIBRARIES}
  44. ${FREETYPE_LIBRARIES}
  45. ${PHYSFS_LIBRARY}
  46. ${VORBISFILE_LIBRARY})
  47. IF(APPLE)
  48. TARGET_LINK_LIBRARIES(PolycodeTUIO "-framework Cocoa")
  49. ENDIF(APPLE)
  50. IF(POLYCODE_INSTALL_FRAMEWORK)
  51. # install headers
  52. INSTALL(FILES ${polycodeTUIO_HDRS} DESTINATION Modules/include)
  53. INSTALL(DIRECTORY Include/ip DESTINATION Modules/include)
  54. INSTALL(DIRECTORY Include/osc DESTINATION Modules/include)
  55. # install libraries
  56. INSTALL(TARGETS PolycodeTUIO DESTINATION Modules/lib)
  57. ENDIF(POLYCODE_INSTALL_FRAMEWORK)