Skip to content

Commit

Permalink
adding git ignore and cmake file for building mypippkg test
Browse files Browse the repository at this point in the history
  • Loading branch information
asmodehn committed Apr 1, 2016
1 parent 0bd3816 commit a3acf1b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
test/mypippkg
23 changes: 23 additions & 0 deletions test/mypippkg.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 2.8.3)
project(mypippkg)

# This is a full project CMakeLists (in case we call it independently for tests or so)
set (PIP_PROJECT_DIR mypippkg)

find_package(catkin REQUIRED)
# Include our own extension from source (to be sure)
include(../cmake/catkin-pip.cmake)
# But in your own packages you want to :
# find_package(catkin REQUIRED COMPONENTS catkin_pure_python)

# We need to install the pip dependencies in the workspace being created
catkin_pip_requirements(${PIP_PROJECT_DIR}/requirements.txt)
# CAREFUL : all projects here share the same workspace. pip might have conflicts...

# defining current package as a package that should be managed by pip (not catkin - even though we make it usable with workspaces)
catkin_pip_package(${PIP_PROJECT_DIR})

## Unit tests
if (CATKIN_ENABLE_TESTING)
catkin_add_nosetests(${PIP_PROJECT_DIR}/tests)
endif()

0 comments on commit a3acf1b

Please sign in to comment.