Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
eigenpy
Commits
0d37b7dc
Verified
Commit
0d37b7dc
authored
4 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
test/packaging: add test for pkgconfig
parent
8a93c325
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+7
-0
7 additions, 0 deletions
.travis.yml
unittest/packaging/cmake-2x/CMakeLists.txt
+10
-0
10 additions, 0 deletions
unittest/packaging/cmake-2x/CMakeLists.txt
unittest/packaging/cmake-2x/extra_lib.cpp
+8
-0
8 additions, 0 deletions
unittest/packaging/cmake-2x/extra_lib.cpp
with
25 additions
and
0 deletions
.travis.yml
+
7
−
0
View file @
0d37b7dc
...
...
@@ -80,6 +80,13 @@ script:
-
cmake .. -DPYTHON_EXECUTABLE=$PYTHON_DEFAULT_VERSION
-
make
-
./extra_lib
-
cd $TRAVIS_BUILD_DIR/unittest/packaging/pkgconfig
-
export PKG_CONFIG_PATH=/tmp/_ci/install/lib/pkgconfig:$PKG_CONFIG_PATH
-
mkdir build
-
cd build
-
cmake .. -DPYTHON_EXECUTABLE=$PYTHON_DEFAULT_VERSION
-
make
-
./extra_lib
-
cd /tmp/_ci/build
-
make uninstall
after_failure
:
./.travis/run after_failure
...
...
This diff is collapsed.
Click to expand it.
unittest/packaging/cmake-2x/CMakeLists.txt
0 → 100644
+
10
−
0
View file @
0d37b7dc
cmake_minimum_required
(
VERSION 2.6
)
project
(
ExtraLib CXX
)
find_package
(
eigenpy REQUIRED
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonLibs REQUIRED
)
include_directories
(
SYSTEM
${
EIGENPY_INCLUDE_DIRS
}
)
add_executable
(
extra_lib extra_lib.cpp
)
target_link_libraries
(
extra_lib PUBLIC
${
eigenpy_LIBRARIES
}
${
PYTHON_LIBRARIES
}
)
This diff is collapsed.
Click to expand it.
unittest/packaging/cmake-2x/extra_lib.cpp
0 → 100644
+
8
−
0
View file @
0d37b7dc
#include
<eigenpy/version.hpp>
int
main
(
int
/*argc*/
,
char
**
/*argv*/
)
{
eigenpy
::
checkVersionAtLeast
(
0
,
0
,
0
);
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment