From 3de044cfc07f03716592128f176a91c7e50b5d11 Mon Sep 17 00:00:00 2001 From: Jeremie Deray <jeremie.deray@pal-robotics.com> Date: Thu, 27 Oct 2016 12:21:07 +0200 Subject: [PATCH] add _WOLF_ROOT_DIR that points to wolf root directory --- src/CMakeLists.txt | 7 +++++++ src/internal/config.h.in | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4fc1a5368..14df55dda 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,13 @@ ENDIF() option(BUILD_EXAMPLES "Build examples" ON) +# Does this has any other interest +# but for the examples ? +#IF(BUILD_EXAMPLES) + set(_WOLF_ROOT_DIR ${CMAKE_SOURCE_DIR}) +#ENDIF(BUILD_EXAMPLES) + + #find dependencies. FIND_PACKAGE(Eigen 3 REQUIRED) diff --git a/src/internal/config.h.in b/src/internal/config.h.in index fb4a3b505..f9cdf5abd 100644 --- a/src/internal/config.h.in +++ b/src/internal/config.h.in @@ -29,4 +29,6 @@ #cmakedefine _WOLF_DEBUG +#define _WOLF_ROOT_DIR "${_WOLF_ROOT_DIR}" + #endif /* WOLF_INTERNAL_CONFIG_H_ */ -- GitLab