Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. # CMakeList.txt : Top-level CMake project file, do global configuration
  2. # and include sub-projects here.
  3. #
  4. cmake_minimum_required (VERSION 3.8)
  5.  
  6. include_directories(${CMAKE_SOURCE_DIR})
  7.  
  8. project ("BridgeBuilder")
  9.  
  10. set(EXECUTABLE_NAME "BridgeBuilder")
  11. add_executable(${EXECUTABLE_NAME} "main.cpp" "main.hpp")
  12.  
  13. # Detect and add SFML
  14. set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
  15. #Find any version 2.X of SFML
  16. #See the FindSFML.cmake file for additional details and instructions
  17. find_package(SFML 2 REQUIRED network audio graphics window system)
  18. if(SFML_FOUND)
  19. include_directories(${SFML_INCLUDE_DIR})
  20. target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
  21. endif()
  22.  
  23. # Install target
  24. install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
  25.  
  26.  
  27. # Box2D
  28. add_subdirectory(3rdparty/Box2D-cmake)
  29. target_compile_features(${EXECUTABLE_NAME} PUBLIC cxx_std_17)
  30. target_link_libraries(${EXECUTABLE_NAME} TG::Box2D)
  31.  
  32. add_subdirectory(Client)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement