From db3ab8c35448b690d717de0ecf2f9baf2d47e9b7 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Thu, 5 Dec 2019 19:42:53 +0100 Subject: [PATCH] test: add test of the CMake packaging --- unittest/cmake/CMakeLists.txt | 8 ++++++++ unittest/cmake/extra_lib.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 unittest/cmake/CMakeLists.txt create mode 100644 unittest/cmake/extra_lib.cpp diff --git a/unittest/cmake/CMakeLists.txt b/unittest/cmake/CMakeLists.txt new file mode 100644 index 0000000..ecbf5ed --- /dev/null +++ b/unittest/cmake/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 2.6) + +project(ExtraLib CXX) +find_package(eigenpy REQUIRED) +find_package(PythonLibs REQUIRED) + +add_executable(extra_lib extra_lib.cpp) +target_link_libraries(extra_lib PUBLIC eigenpy::eigenpy ${PYTHON_LIBRARIES}) diff --git a/unittest/cmake/extra_lib.cpp b/unittest/cmake/extra_lib.cpp new file mode 100644 index 0000000..7e5a78b --- /dev/null +++ b/unittest/cmake/extra_lib.cpp @@ -0,0 +1,8 @@ + +#include <eigenpy/version.hpp> + +int main(int /*argc*/, char ** /*argv*/) +{ + eigenpy::checkVersionAtLeast(0,0,0); + return 0; +} -- GitLab