CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. INCLUDE(PolycodeIncludes)
  2. SET(polycodeNetworking_SRCS
  3. Source/PolyClient.cpp
  4. Source/PolyPeer.cpp
  5. Source/PolyServer.cpp
  6. Source/PolySocket.cpp
  7. )
  8. SET(polycodeNetworking_HDRS
  9. Include/PolycodeNetworking.h
  10. Include/PolyClient.h
  11. Include/PolyPeer.h
  12. Include/PolyServer.h
  13. Include/PolyServerWorld.h
  14. Include/PolySocket.h
  15. )
  16. INCLUDE_DIRECTORIES(
  17. Include
  18. )
  19. SET(CMAKE_DEBUG_POSTFIX "_d")
  20. ADD_LIBRARY(PolycodeNetworking ${polycodeNetworking_SRCS} ${polycodeNetworking_HDRS})
  21. TARGET_LINK_LIBRARIES(PolycodeNetworking
  22. Polycore
  23. ${BOX2D_LIBRARIES}
  24. ${OPENGL_LIBRARIES}
  25. ${OPENAL_LIBRARY}
  26. ${PNG_LIBRARIES}
  27. ${FREETYPE_LIBRARIES}
  28. ${PHYSFS_LIBRARY}
  29. ${VORBISFILE_LIBRARY})
  30. IF(APPLE)
  31. TARGET_LINK_LIBRARIES(PolycodeNetworking "-framework Cocoa")
  32. ENDIF(APPLE)
  33. IF(POLYCODE_INSTALL_FRAMEWORK)
  34. # install headers
  35. INSTALL(FILES ${polycodeNetworking_HDRS} DESTINATION Modules/include)
  36. # install libraries
  37. INSTALL(TARGETS PolycodeNetworking DESTINATION Modules/lib)
  38. ENDIF(POLYCODE_INSTALL_FRAMEWORK)