Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cmake and ROS/catkin support. #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 2.8.3)

project(transforms3d NONE)

enable_testing()

find_package(PythonInterp REQUIRED)
find_program(NOSE nosetests)

if (NOT NOSE)
message(FATAL_ERROR "could not find nosetests program")
endif()

set(setup_py ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)

add_custom_target(python_build ALL ${PYTHON_EXECUTABLE}
${setup_py} build
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

install(CODE "execute_process(
COMMAND ${PYTHON_EXECUTABLE} ${setup_py} install
--prefix=${CMAKE_INSTALL_PREFIX}
--install-layout=deb
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)")

install(FILES package.xml DESTINATION share/transforms3d)

add_test(nose ${NOSE} ${CMAKE_CURRENT_SOURCE_DIR}/transforms3d)
17 changes: 17 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package>
<name>transforms3d</name>
<version>0.3.0</version>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to build this file, with the correct version, as the version gets updated?

<description>The transforms3d package</description>
<maintainer email="james.goppert@gmail.com">jgoppert</maintainer>
<license>BSD</license>
<url type="repository">https://github.com/matthew-brett/transforms3d</url>
<test_depend>python-nose</test_depend>
<run_depend>catkin</run_depend>
<buildtool_depend>catkin</buildtool_depend>
<export>
<build_type>cmake</build_type>
</export>
</package>

<!-- vim: set et fenc=utf-8 ff=unix sts=0 sw=2 ts=2 : -->