summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'qxt-mini/CMakeLists.txt')
-rw-r--r--qxt-mini/CMakeLists.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/qxt-mini/CMakeLists.txt b/qxt-mini/CMakeLists.txt
index 39f3525c..cc73e6a4 100644
--- a/qxt-mini/CMakeLists.txt
+++ b/qxt-mini/CMakeLists.txt
@@ -1,13 +1,11 @@
if(UNIX OR APPLE)
+ set(self opentrack-qxt-mini)
otr_module(qxt-mini NO-COMPAT BIN)
- if(NOT APPLE)
- pkg_check_modules(xprotopkg REQUIRED xproto)
- target_include_directories(opentrack-qxt-mini SYSTEM PRIVATE ${xprotopkg_INCLUDE_DIRS})
- target_link_libraries(opentrack-qxt-mini X11)
- add_definitions(-DQXT_BUILD)
- else()
- set_property(TARGET opentrack-qxt-mini
+ otr_pkgconfig(${self} x11 xcb xproto)
+ if(APPLE)
+ set_property(TARGET ${self}
APPEND_STRING PROPERTY
- LINK_FLAGS "-framework Carbon -framework CoreFoundation ")
+ LINK_FLAGS " -framework Carbon -framework CoreFoundation ")
endif()
+ target_compile_definitions(${self} PRIVATE -DQXT_BUILD)
endif()