diff --git a/unittest/cmake/CMakeLists.txt b/unittest/cmake/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ecbf5edcf024195cfa819027a0b7da014150a5c0
--- /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 0000000000000000000000000000000000000000..7e5a78bc4a8d7a3e9edd28cb75a5bf73f17c482a
--- /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;
+}