Skip to content

Commit

Permalink
Build and run all tests found by the glob. (cartographer-project#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
wohe authored May 3, 2017
1 parent ff06e37 commit 6d2feaa
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 581 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ list(APPEND ALL_SRCS ${ALL_PROTO_SRCS} ${ALL_PROTO_HDRS})
add_library(${PROJECT_NAME} ${ALL_SRCS})
add_subdirectory("cartographer")

foreach(ABS_FIL ${ALL_TESTS})
file(RELATIVE_PATH REL_FIL ${PROJECT_SOURCE_DIR} ${ABS_FIL})
get_filename_component(DIR ${REL_FIL} DIRECTORY)
get_filename_component(FIL_WE ${REL_FIL} NAME_WE)
google_test("${DIR}/${FIL_WE}" ${ABS_FIL})
endforeach()

target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
"${EIGEN3_INCLUDE_DIR}")
target_link_libraries(${PROJECT_NAME} PUBLIC ${EIGEN3_LIBRARIES})
Expand Down
7 changes: 0 additions & 7 deletions cartographer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@

add_subdirectory("common")
add_subdirectory("ground_truth")
add_subdirectory("io")
add_subdirectory("kalman_filter")
add_subdirectory("mapping")
add_subdirectory("mapping_2d")
add_subdirectory("mapping_3d")
add_subdirectory("sensor")
add_subdirectory("transform")
30 changes: 0 additions & 30 deletions cartographer/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,3 @@
configure_file (
${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h)

google_test(common_blocking_queue_test
SRCS
blocking_queue_test.cc
)

google_test(common_configuration_files_test
SRCS
configuration_files_test.cc
)

google_test(common_fixed_ratio_sampler_test
SRCS
fixed_ratio_sampler_test.cc
)

google_test(common_lua_parameter_dictionary_test
SRCS
lua_parameter_dictionary_test.cc
)

google_test(common_math_test
SRCS
math_test.cc
)

google_test(common_rate_timer_test
SRCS
rate_timer_test.cc
)
1 change: 0 additions & 1 deletion cartographer/ground_truth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.


google_binary(cartographer_compute_relations_metrics
SRCS
compute_relations_metrics_main.cc
Expand Down
18 changes: 0 additions & 18 deletions cartographer/io/CMakeLists.txt

This file was deleted.

28 changes: 0 additions & 28 deletions cartographer/kalman_filter/CMakeLists.txt

This file was deleted.

33 changes: 0 additions & 33 deletions cartographer/mapping/CMakeLists.txt

This file was deleted.

45 changes: 0 additions & 45 deletions cartographer/mapping_2d/CMakeLists.txt

This file was deleted.

33 changes: 0 additions & 33 deletions cartographer/mapping_2d/scan_matching/CMakeLists.txt

This file was deleted.

36 changes: 0 additions & 36 deletions cartographer/mapping_3d/CMakeLists.txt

This file was deleted.

38 changes: 0 additions & 38 deletions cartographer/mapping_3d/scan_matching/CMakeLists.txt

This file was deleted.

18 changes: 0 additions & 18 deletions cartographer/mapping_3d/sparse_pose_graph/CMakeLists.txt

This file was deleted.

43 changes: 0 additions & 43 deletions cartographer/sensor/CMakeLists.txt

This file was deleted.

23 changes: 0 additions & 23 deletions cartographer/transform/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 6d2feaa

Please sign in to comment.