This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
/
CMakeLists.txt
92 lines (85 loc) · 1.94 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Some flags for Freeglut and GLUI.
add_definitions( -DFREEGLUT_EXPORTS -DFREEGLUT_STATIC -D_CRT_SECURE_NO_WARNINGS )
# Define the framework files.
set(Testbed_Framework_SRCS
Framework/Main.cpp
Framework/Render.cpp
Framework/Render.h
Framework/Test.cpp
Framework/Test.h
)
#define the test files.
set(Testbed_Tests_SRCS
Tests/TestEntries.cpp
Tests/AddPair.h
Tests/ApplyForce.h
Tests/BodyTypes.h
Tests/Breakable.h
Tests/Bridge.h
Tests/BulletTest.h
Tests/Cantilever.h
Tests/Car.h
Tests/Chain.h
Tests/CharacterCollision.h
Tests/CollisionFiltering.h
Tests/CollisionProcessing.h
Tests/CompoundShapes.h
Tests/Confined.h
Tests/ContinuousTest.h
Tests/DistanceTest.h
Tests/Dominos.h
Tests/DumpShell.h
Tests/DynamicTreeTest.h
Tests/EdgeShapes.h
Tests/EdgeTest.h
Tests/Gears.h
Tests/OneSidedPlatform.h
Tests/Pinball.h
Tests/PolyCollision.h
Tests/PolyShapes.h
Tests/Prismatic.h
Tests/Pulleys.h
Tests/Pyramid.h
Tests/RayCast.h
Tests/Revolute.h
Tests/Rope.h
Tests/RopeJoint.h
Tests/SensorTest.h
Tests/ShapeEditing.h
Tests/SliderCrank.h
Tests/SphereStack.h
Tests/TheoJansen.h
Tests/Tiles.h
Tests/TimeOfImpact.h
Tests/VaryingFriction.h
Tests/VaryingRestitution.h
Tests/VerticalStack.h
Tests/Web.h
)
# These are used to create visual studio folders.
source_group(Framework FILES ${Testbed_Framework_SRCS})
source_group(Tests FILES ${Testbed_Tests_SRCS})
include_directories (
${OPENGL_INCLUDE_DIR}
${Box2D_SOURCE_DIR}
)
if(APPLE)
# We are not using the Apple's framework version, but X11's
include_directories( /usr/X11/include )
link_directories( /usr/X11/lib )
set (OPENGL_LIBRARIES GL GLU GLUT X11)
elseif(WIN32)
set (ADDITIONAL_LIBRARIES winmm)
endif(APPLE)
add_executable(Testbed
${Testbed_Framework_SRCS}
${Testbed_Tests_SRCS}
)
target_link_libraries (
Testbed
Box2D
freeglut_static
glui
${ADDITIONAL_LIBRARIES}
${OPENGL_LIBRARIES}
)