Skip to content

Commit

Permalink
Merge pull request #56 from vrabaud/master
Browse files Browse the repository at this point in the history
get the unit test be considered as a proper CMake test
  • Loading branch information
isucan committed Jan 13, 2015
2 parents 29cca7a + 7466ecc commit 771cde3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ find_package(Boost REQUIRED system thread unit_test_framework)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})

enable_testing()

add_subdirectory(urdf_parser)

set(PKG_NAME ${PROJECT_NAME})
Expand Down
3 changes: 3 additions & 0 deletions urdf_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ target_link_libraries(check_urdf urdfdom_model urdfdom_world)
add_executable(urdf_to_graphiz src/urdf_to_graphiz.cpp)
target_link_libraries(urdf_to_graphiz urdfdom_model)

# urdf_mem_test is a binary for testing, not a unit test
add_executable(urdf_mem_test test/memtest.cpp)
target_link_libraries(urdf_mem_test urdfdom_model)

# unit test to fix geometry problems
add_executable(urdf_unit_test test/urdf_unit_test.cpp)
target_link_libraries(urdf_unit_test urdfdom_model ${Boost_LIBRARIES})
add_test(urdf_unit_test urdf_unit_test)

INSTALL(TARGETS urdfdom_model DESTINATION ${CMAKE_INSTALL_LIBDIR})
INSTALL(TARGETS urdfdom_world DESTINATION ${CMAKE_INSTALL_LIBDIR})
Expand Down

0 comments on commit 771cde3

Please sign in to comment.