From 9babeca6d528a4571170a5e90d08e2f2de4ba994 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Jul 2016 10:11:15 +0200 Subject: cmake: expose more prefixes in generated header --- cmake/opentrack-boilerplate.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmake') diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index fc91e469..970d542d 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -1,7 +1,16 @@ include(opentrack-hier) set(new-hier-path "#pragma once +#include +#include + +#define OPENTRACK_BASE_PATH (([]() -> const QString& { \\ + const static QString const__path___ = QCoreApplication::applicationDirPath(); \\ + return const__path___; \\ + })()) #define OPENTRACK_LIBRARY_PATH \"${opentrack-hier-path}\" +#define OPENTRACK_DOC_PATH \"${opentrack-hier-doc}\" +#define OPENTRACK_CONTRIB_PATH \"${opentrack-hier-doc}contrib/\" ") set(hier-path-filename "${CMAKE_BINARY_DIR}/opentrack-library-path.h") -- cgit v1.2.3