-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding git ignore and cmake file for building mypippkg test
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
test/mypippkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |