CMakeLists.txt 604 B

12345678910111213141516171819
  1. # Copyright (c) 2008-2023 the Urho3D project
  2. # License: MIT
  3. # Define target name
  4. set (TARGET_NAME Box2D)
  5. # Define source files
  6. define_source_files (RECURSE GLOB_CPP_PATTERNS src/*.cpp src/*.h GLOB_H_PATTERNS include/*.h GROUP)
  7. set (SOURCE_FILES ${CPP_FILES} ${H_FILES})
  8. # Define dependency libs
  9. set (INCLUDE_DIRS include)
  10. # Setup target
  11. setup_library ()
  12. # Install headers for building and using the Urho3D library (install dependency for Urho3D/Physics2D/PhysicsWorld2D.h and Urho3D/Physics2D/RigidBody2D.h)
  13. install_header_files (DIRECTORY include/box2d DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty)