diff options
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 3b2cadfe..f6f8e8aa 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -1,11 +1,14 @@ set(new-hier-path "#pragma once -#include <QCoreApplication> -#include <QString> +#ifndef OPENTRACK_NO_QT_PATH -#define OPENTRACK_BASE_PATH (([]() -> const QString& { \\ - const static QString const__path___ = QCoreApplication::applicationDirPath(); \\ - return const__path___; \\ - })()) +# include <QCoreApplication> +# include <QString> + +# define OPENTRACK_BASE_PATH (([]() -> const QString& { \\ + const static QString const__path___ = QCoreApplication::applicationDirPath(); \\ + return const__path___; \\ + })()) +#endif #define OPENTRACK_LIBRARY_PATH \"${opentrack-hier-path}\" #define OPENTRACK_DOC_PATH \"${opentrack-hier-doc}\" #define OPENTRACK_CONTRIB_PATH \"${opentrack-hier-doc}contrib/\" |