Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
c625e19b
Verified
Commit
c625e19b
authored
Apr 03, 2020
by
Justin Carpentier
Browse files
test/packaging: add test for cmake old style
parent
0d37b7dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
c625e19b
...
...
@@ -80,6 +80,12 @@ script:
-
cmake .. -DPYTHON_EXECUTABLE=$PYTHON_DEFAULT_VERSION
-
make
-
./extra_lib
-
cd $TRAVIS_BUILD_DIR/unittest/packaging/cmake-2x
-
mkdir build
-
cd build
-
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
...
...
unittest/packaging/pkgconfig/CMakeLists.txt
0 → 100644
View file @
c625e19b
cmake_minimum_required
(
VERSION 2.6
)
project
(
ExtraLib CXX
)
find_package
(
PkgConfig REQUIRED
)
pkg_check_modules
(
EIGENPY REQUIRED eigenpy
)
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_LDFLAGS
}
${
PYTHON_LIBRARIES
}
)
unittest/packaging/pkgconfig/extra_lib.cpp
0 → 100644
View file @
c625e19b
#include
<eigenpy/version.hpp>
int
main
(
int
/*argc*/
,
char
**
/*argv*/
)
{
eigenpy
::
checkVersionAtLeast
(
0
,
0
,
0
);
return
0
;
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment