summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini
diff options
context:
space:
mode:
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