-
Notifications
You must be signed in to change notification settings - Fork 493
/
Copy pathCMakeLists.txt
92 lines (78 loc) · 2.27 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
include_directories (
${ODE_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIR}
${OGRE_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PROTOBUF_INCLUDE_DIR}
)
link_directories(
${ogre_library_dirs}
${Boost_LIBRARY_DIRS}
${ODE_LIBRARY_DIRS}
)
# Disable the player test for now, until we figure out a better way to test them
#if (INCLUDE_PLAYER)
# add_subdirectory(player)
#endif()
if(HAVE_BULLET)
include_directories ( ${BULLET_INCLUDE_DIRS} )
link_directories ( ${BULLET_LIBRARY_DIRS} )
endif()
set(tests
bandwidth.cc
contact_sensor.cc
factory.cc
file_handling.cc
gripper.cc
imu.cc
laser.cc
nondefault_world.cc
physics.cc
physics_msgs.cc
pioneer2dx.cc
transport.cc
server_fixture.cc
speed.cc
stress_spawn_models.cc
#state_log.cc
surface_properties.cc
transceiver.cc
world.cc
)
if (MANPAGES_SUPPORT)
set (tests ${tests}
manpages.cc)
endif()
set (GZ_BUILD_TESTS_EXTRA_EXE_SRCS
"${PROJECT_SOURCE_DIR}/gazebo/Server.cc;${PROJECT_SOURCE_DIR}/gazebo/Master.cc;${PROJECT_SOURCE_DIR}/gazebo/gazebo.cc;${PROJECT_SOURCE_DIR}/test/ServerFixture.cc")
gz_build_tests(${tests})
if (ENABLE_TESTS_COMPILATION)
# Increase timeout, to account for model download time.
set_tests_properties(${TEST_TYPE}_physics PROPERTIES TIMEOUT 500)
endif()
set(display_tests
)
# Build the display tests (need extra sources to compile)
set (GZ_BUILD_TESTS_EXTRA_EXE_SRCS
"${PROJECT_SOURCE_DIR}/gazebo/Server.cc;${PROJECT_SOURCE_DIR}/gazebo/Master.cc;${PROJECT_SOURCE_DIR}/gazebo/gazebo.cc;${PROJECT_SOURCE_DIR}/test/ServerFixture.cc")
gz_build_display_tests(${display_tests})
set(dri_tests
camera_sensor.cc
multicamera_sensor.cc
gpu_laser.cc
heightmap.cc
ogre_log.cc
pr2.cc
projector.cc
rendering_sensor.cc
speed_pr2.cc
)
set (GZ_BUILD_TESTS_EXTRA_EXE_SRCS
"${PROJECT_SOURCE_DIR}/gazebo/Server.cc;${PROJECT_SOURCE_DIR}/gazebo/Master.cc;${PROJECT_SOURCE_DIR}/gazebo/gazebo.cc;${PROJECT_SOURCE_DIR}/test/ServerFixture.cc")
gz_build_dri_tests(${dri_tests})
if (ENABLE_TESTS_COMPILATION AND VALID_DRI_DISPLAY)
# Increase timeout, to account for model download time.
set_tests_properties(${TEST_TYPE}_pr2 PROPERTIES TIMEOUT 500)
# Increase timeout, to account for model download time.
set_tests_properties(${TEST_TYPE}_pioneer2dx PROPERTIES TIMEOUT 500)
endif()