Skip to content

Commit

Permalink
stripping urdfdom to be a pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Jun 23, 2014
1 parent 5b69479 commit c4ed0c7
Show file tree
Hide file tree
Showing 43 changed files with 25 additions and 11,920 deletions.
78 changes: 1 addition & 77 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,80 +1,4 @@
cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
project (urdfdom CXX C)

set (URDF_MAJOR_VERSION 0)
set (URDF_MINOR_VERSION 3)
set (URDF_PATCH_VERSION 0)

set (URDF_VERSION ${URDF_MAJOR_VERSION}.${URDF_MINOR_VERSION}.${URDF_PATCH_VERSION})

message (STATUS "${PROJECT_NAME} version ${URDF_VERSION}")

include(GNUInstallDirs)

# hack: by default this would be 'lib/x86_64-linux-gnu'
set(CMAKE_INSTALL_LIBDIR lib)

# set the default build type
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

# If compiler support symbol visibility, enable it.
include(CheckCCompilerFlag)
check_c_compiler_flag(-fvisibility=hidden HAS_VISIBILITY)
if (HAS_VISIBILITY)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
endif()

# This shouldn't be necessary, but there has been trouble
# with MSVC being set off, but MSVCXX ON.
if(MSVC OR MSVC90 OR MSVC10)
set(MSVC ON)
endif (MSVC OR MSVC90 OR MSVC10)

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(SearchForTinyXML)
include_directories(${tinyxml_include_dirs})
link_directories(${tinyxml_library_dirs})
add_definitions(${tinyxml_cflags})

find_package(urdfdom_headers REQUIRED)
include_directories(SYSTEM ${urdfdom_headers_INCLUDE_DIRS})

find_package(console_bridge REQUIRED)
include_directories(SYSTEM ${console_bridge_INCLUDE_DIRS})
link_directories(${console_bridge_LIBRARY_DIRS})

find_package(Boost REQUIRED system thread)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})

add_subdirectory(urdf_parser)

set(PKG_NAME ${PROJECT_NAME})
set(PKG_LIBRARIES urdfdom_sensor urdfdom_model_state urdfdom_model urdfdom_world)
set(PKG_DEPENDS urdfdom_headers console_bridge)
set(cmake_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/cmake/urdfdom-config.cmake")
configure_file("${cmake_conf_file}.in" "${CMAKE_BINARY_DIR}/${cmake_conf_file}" @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/${cmake_conf_file}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake/ COMPONENT cmake)

# Make the package config file
if (NOT MSVC)
set(PKG_DESC "Unified Robot Description Format")
set(PKG_DEPENDS "urdfdom_headers console_bridge") # make the list separated by spaces instead of ;
set(PKG_URDF_LIBS "-lurdfdom_sensor -lurdfdom_model_state -lurdfdom_model -lurdfdom_world")
set(pkg_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/cmake/pkgconfig/urdfdom.pc")
configure_file("${pkg_conf_file}.in" "${CMAKE_BINARY_DIR}/${pkg_conf_file}" @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/${pkg_conf_file}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ COMPONENT pkgconfig)
endif()

add_subdirectory(urdf_parser_py)

message(STATUS "Configuration successful. Type make to compile urdfdom")

SET_DIRECTORY_PROPERTIES(PROPERTIES
ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_BINARY_DIR}/cmake/urdfdom-config.cmake
ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_BINARY_DIR}/cmake/pkgconfig/urdfdom.pc)
# do nothing this is a dummy target to keep the build proces happy.
33 changes: 0 additions & 33 deletions LICENSE

This file was deleted.

53 changes: 0 additions & 53 deletions README.md

This file was deleted.

20 changes: 0 additions & 20 deletions cmake/SearchForTinyXML.cmake

This file was deleted.

12 changes: 0 additions & 12 deletions cmake/pkgconfig/urdfdom.pc.in

This file was deleted.

26 changes: 0 additions & 26 deletions cmake/urdfdom-config.cmake.in

This file was deleted.

24 changes: 24 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<package>
<name>urdfdom</name>
<version>0.3.0</version>
<description>A temporary pass through to the urdfdom rosdep. You should depend on liburdfdom-dev directly.</description>
<maintainer email="[email protected]">John Hsu</maintainer>
<maintainer email="[email protected]">Ioan Sucan</maintainer>

<license>BSD</license>

<author>Wim Meeussen</author>
<author>John Hsu</author>
<author>Ioan Sucan</author>
<url type="website">http://ros.org/wiki/urdf</url>
<url type="bugtracker">https://github.com/ros/urdfdom/issues</url>
<url type="repository">https://github.com/ros/urdfdom</url>

<build_depend>cmake</build_depend>
<run_depend>liburdfdom-dev</run_depend>

<export>
<build_type>cmake</build_type>
</export>
</package>
37 changes: 0 additions & 37 deletions urdf_parser/CMakeLists.txt

This file was deleted.

84 changes: 0 additions & 84 deletions urdf_parser/include/urdf_parser/exportdecl.h

This file was deleted.

Loading

0 comments on commit c4ed0c7

Please sign in to comment.