summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/CMakeLists.txt
blob: 39f3525c365e4160038f66db446c7b6dfe91c697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(UNIX OR APPLE)
    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
                     APPEND_STRING PROPERTY
                     LINK_FLAGS "-framework Carbon -framework CoreFoundation ")
    endif()
endif()