diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4fc1a53683b60c2f6d97860951ebae0b212ea87a..14df55dda1faef912bbde1d80d1f46b40997db01 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 fb4a3b5059a468e44390cb5a35ef97adbd66f9d4..f9cdf5abd2ef482487cf43e24bd1110371e1c139 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_ */