summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:36:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:49:12 +0100
commitcc16fd0121fe79ae1fd9539a606c19827f64bc23 (patch)
treed141902716ea4b8e563d9e708c3e99671d791f40 /qxt-mini
parent73921613ddddc8d1f8e0caed21ab8dd490a74eb1 (diff)
use newly-added preprocessor variable
Diffstat (limited to 'qxt-mini')
-rw-r--r--qxt-mini/CMakeLists.txt5
-rw-r--r--qxt-mini/qxtglobal.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/qxt-mini/CMakeLists.txt b/qxt-mini/CMakeLists.txt
index 2fe5993b..5de29cd1 100644
--- a/qxt-mini/CMakeLists.txt
+++ b/qxt-mini/CMakeLists.txt
@@ -1,8 +1,5 @@
if(UNIX OR APPLE)
- opentrack_boilerplate(opentrack-qxt-mini
- NO-LINKER-SCRIPT NO-COMPAT
- COMPILE "-DQXT_BUILD -DBUILD_QXT_GUI"
- )
+ opentrack_boilerplate(opentrack-qxt-mini NO-LINKER-SCRIPT NO-COMPAT)
if(NOT APPLE)
target_link_libraries(opentrack-qxt-mini X11)
else()
diff --git a/qxt-mini/qxtglobal.h b/qxt-mini/qxtglobal.h
index 574482ae..64fd35dc 100644
--- a/qxt-mini/qxtglobal.h
+++ b/qxt-mini/qxtglobal.h
@@ -51,6 +51,12 @@
#define QXT_DLLEXPORT DO_NOT_USE_THIS_ANYMORE
+#ifdef BUILD_opentrack_qxt_mini
+# define QXT_BUILD
+# define BUILD_QXT_GUI
+# define BUILD_QXT
+#endif
+
#ifdef QXT_BUILD
# if defined(BUILD_QXT_CORE)
# define QXT_CORE_EXPORT Q_DECL_EXPORT