Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CMakeList.txt : Top-level CMake project file, do global configuration
- # and include sub-projects here.
- #
- cmake_minimum_required (VERSION 3.8)
- include_directories(${CMAKE_SOURCE_DIR})
- project ("BridgeBuilder")
- set(EXECUTABLE_NAME "BridgeBuilder")
- add_executable(${EXECUTABLE_NAME} "main.cpp" "main.hpp")
- # Detect and add SFML
- set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
- #Find any version 2.X of SFML
- #See the FindSFML.cmake file for additional details and instructions
- find_package(SFML 2 REQUIRED network audio graphics window system)
- if(SFML_FOUND)
- include_directories(${SFML_INCLUDE_DIR})
- target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
- endif()
- # Install target
- install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
- # Box2D
- add_subdirectory(3rdparty/Box2D-cmake)
- target_compile_features(${EXECUTABLE_NAME} PUBLIC cxx_std_17)
- target_link_libraries(${EXECUTABLE_NAME} TG::Box2D)
- add_subdirectory(Client)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement