-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
58 lines (54 loc) · 3.33 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 3.8)
project (Box2D-cmake)
set(SOURCES
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2BroadPhase.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2CollideCircle.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2CollideEdge.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2CollidePolygon.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2Collision.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2Distance.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2DynamicTree.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/b2TimeOfImpact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/Shapes/b2ChainShape.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/Shapes/b2CircleShape.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/Shapes/b2EdgeShape.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Collision/Shapes/b2PolygonShape.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2BlockAllocator.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2Draw.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2Math.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2Settings.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2StackAllocator.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Common/b2Timer.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2CircleContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2Contact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2ContactSolver.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Contacts/b2PolygonContact.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2DistanceJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2FrictionJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2GearJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2Joint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2MotorJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2MouseJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2PrismaticJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2PulleyJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2RevoluteJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2RopeJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2WeldJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/Joints/b2WheelJoint.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2Body.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2ContactManager.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2Fixture.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2Island.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2World.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Dynamics/b2WorldCallbacks.cpp
${PROJECT_SOURCE_DIR}/Box2D/Box2D/Rope/b2Rope.cpp
)
add_library(${PROJECT_NAME} STATIC ${SOURCES})
add_library(tobanteGaming::Box2D ALIAS ${PROJECT_NAME})
target_include_directories( ${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/Box2D)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)