Multiplayer Test using enet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. cmake_minimum_required (VERSION 2.6)
  2. project (GREMLIN C CXX)
  3. if (MSVC)
  4. add_definitions(/D_USE_MATH_DEFINES)
  5. endif(MSVC)
  6. if (WIN32)
  7. set(PLATFORM_LIBRARIES ws2_32 winmm)
  8. endif(WIN32)
  9. if(UNIX)
  10. set(PLATFORM_LIBRARIES pthread)
  11. endif(UNIX)
  12. include_directories (${GREMLIN_SOURCE_DIR}/libs/glfw/include)
  13. include_directories (${GREMLIN_SOURCE_DIR}/libs/spark/include)
  14. include_directories (${GREMLIN_SOURCE_DIR}/libs/enet/include)
  15. include_directories (${GREMLIN_SOURCE_DIR}/libs/log4cplus/include)
  16. include_directories (${GREMLIN_SOURCE_DIR}/libs/bullet)
  17. include_directories (${GREMLIN_SOURCE_DIR}/libs/yaml-cpp/include)
  18. include_directories (${GREMLIN_SOURCE_DIR}/libs/trimeshloader/include)
  19. find_package(OpenGL)
  20. add_subdirectory (libs/enet)
  21. add_subdirectory (libs/pugixml)
  22. add_subdirectory (libs/bullet)
  23. add_subdirectory (libs/yaml-cpp)
  24. add_subdirectory (libs/log4cplus)
  25. add_subdirectory (libs/trimeshloader)
  26. add_subdirectory (src/common)
  27. add_subdirectory (src/server)
  28. if (OPENGL_FOUND)
  29. add_subdirectory (libs/glfw)
  30. add_subdirectory (libs/spark)
  31. add_subdirectory (src/client)
  32. endif(OPENGL_FOUND)