summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-18 10:11:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-18 10:11:15 +0200
commit9babeca6d528a4571170a5e90d08e2f2de4ba994 (patch)
tree1b50d630fcaa8b7aae0c26249617fc75ff3ff96b /cmake
parent87d577d17be72d5c76571aac001163f80ba912f6 (diff)
cmake: expose more prefixes in generated header
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake9
1 files changed, 9 insertions, 0 deletions
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 <QCoreApplication>
+#include <QString>
+
+#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")