~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/box2d/Testbed/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Some flags for Freeglut and GLUI.
 
2
add_definitions( -DFREEGLUT_EXPORTS -DFREEGLUT_STATIC -D_CRT_SECURE_NO_WARNINGS )
 
3
 
 
4
# Define the framework files.
 
5
set(Testbed_Framework_SRCS
 
6
        Framework/Main.cpp
 
7
        Framework/Render.cpp
 
8
        Framework/Render.h
 
9
        Framework/Test.cpp
 
10
        Framework/Test.h
 
11
)
 
12
 
 
13
#define the test files.
 
14
set(Testbed_Tests_SRCS
 
15
        Tests/TestEntries.cpp
 
16
        Tests/AddPair.h
 
17
        Tests/ApplyForce.h
 
18
        Tests/BodyTypes.h
 
19
        Tests/Breakable.h
 
20
        Tests/Bridge.h
 
21
        Tests/BulletTest.h
 
22
        Tests/Cantilever.h
 
23
        Tests/Car.h
 
24
        Tests/Chain.h
 
25
        Tests/CharacterCollision.h
 
26
        Tests/CollisionFiltering.h
 
27
        Tests/CollisionProcessing.h
 
28
        Tests/CompoundShapes.h
 
29
        Tests/Confined.h
 
30
        Tests/ContinuousTest.h
 
31
        Tests/DistanceTest.h
 
32
        Tests/Dominos.h
 
33
        Tests/DumpShell.h
 
34
        Tests/DynamicTreeTest.h
 
35
        Tests/EdgeShapes.h
 
36
        Tests/EdgeTest.h
 
37
        Tests/Gears.h
 
38
        Tests/OneSidedPlatform.h
 
39
        Tests/Pinball.h
 
40
        Tests/PolyCollision.h
 
41
        Tests/PolyShapes.h
 
42
        Tests/Prismatic.h
 
43
        Tests/Pulleys.h
 
44
        Tests/Pyramid.h
 
45
        Tests/RayCast.h
 
46
        Tests/Revolute.h
 
47
        Tests/Rope.h
 
48
        Tests/RopeJoint.h
 
49
        Tests/SensorTest.h
 
50
        Tests/ShapeEditing.h
 
51
        Tests/SliderCrank.h
 
52
        Tests/SphereStack.h
 
53
        Tests/TheoJansen.h
 
54
        Tests/Tiles.h
 
55
        Tests/TimeOfImpact.h
 
56
        Tests/VaryingFriction.h
 
57
        Tests/VaryingRestitution.h
 
58
        Tests/VerticalStack.h
 
59
        Tests/Web.h
 
60
)
 
61
 
 
62
# These are used to create visual studio folders.
 
63
source_group(Framework FILES ${Testbed_Framework_SRCS})
 
64
source_group(Tests FILES ${Testbed_Tests_SRCS})
 
65
 
 
66
include_directories (
 
67
        ${OPENGL_INCLUDE_DIR}
 
68
        ${Box2D_SOURCE_DIR}
 
69
)
 
70
 
 
71
if(APPLE)
 
72
        # We are not using the Apple's framework version, but X11's
 
73
        include_directories( /usr/X11/include )
 
74
        link_directories( /usr/X11/lib )
 
75
        set (OPENGL_LIBRARIES GL GLU GLUT X11)
 
76
elseif(WIN32)
 
77
        set (ADDITIONAL_LIBRARIES winmm)
 
78
endif(APPLE)
 
79
 
 
80
add_executable(Testbed
 
81
        ${Testbed_Framework_SRCS}
 
82
        ${Testbed_Tests_SRCS}
 
83
)
 
84
 
 
85
target_link_libraries (
 
86
        Testbed
 
87
        Box2D
 
88
        freeglut_static
 
89
        glui
 
90
        ${ADDITIONAL_LIBRARIES}
 
91
        ${OPENGL_LIBRARIES}
 
92