Skip to content
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="[email protected]">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 : -->