diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 163 |
1 files changed, 78 insertions, 85 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f263f47d..09f55da6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,9 +6,20 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) SET(CMAKE_SKIP_INSTALL_RPATH FALSE) SET(CMAKE_SKIP_RPATH FALSE) SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}") +set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTOMOC ON) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) add_definitions(-DOPENTRACK_API) +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + add_definitions(-std=c++11) +endif() + +if(CMAKE_COMPILER_IS_GNUCXX) + add_definitions(-std=c++11) +endif() + if(UNIX) set(SDK_ENABLE_LIBEVDEV FALSE CACHE BOOL "libevdev virtual joystick protocol support (probably Linux only)") endif() @@ -39,26 +50,10 @@ include_directories(${CMAKE_SOURCE_DIR}) if(NOT SDK_FACEAPI_ONLY) find_package(OpenCV) - find_package(Qt4 COMPONENTS QtCore QtGui QtDesigner QtXml QtNetwork REQUIRED) - - if(NOT WIN32) - if(NOT QXT_QXTGUI_LIB_RELEASE) - find_package(Qxt COMPONENTS QxtGui REQUIRED) - endif() + find_package(Qt5 REQUIRED COMPONENTS Core Xml Network Widgets Gui QUIET) + include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Xml_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS}) + add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Xml_DEFINITIONS} ${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS}) - if(NOT QXT_QXTGUI_INCLUDE_DIR OR QXT_QXTGUI_INCLUDE_DIR STREQUAL "QXT_QXTGUI_INCLUDE_DIR-NOTFOUND") - message(FATAL_ERROR "Qxt not found, required for keybindings, get from http://libqxt.org") - endif() - - include_directories(${QXT_QXTGUI_INCLUDE_DIR}) - include_directories(${QXT_QXTCORE_INCLUDE_DIR}) - if(EXISTS "${QXT_QXTCORE_INCLUDE_DIR}/QxtCore/") - include_directories(${QXT_QXTCORE_INCLUDE_DIR}/QxtCore) - endif() - if(EXISTS "${QXT_QXTGUI_INCLUDE_DIR}/QxtGui/") - include_directories(${QXT_QXTGUI_INCLUDE_DIR}/QxtGui) - endif() - endif() INCLUDE_DIRECTORIES(${QT_QTDESIGNER_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) @@ -107,175 +102,164 @@ if(SDK_FSUIPC AND WIN32) endif() if(NOT SDK_FACEAPI_ONLY) +# Qxt bundled :: sorry for this, but gentoo ebuild is broken + if(APPLE) + set(qxt-mini-c qxt-mini/plat/qxtglobalshortcut_mac.cpp qxt-mini/qxtglobalshortcut.cpp) + include_directories("qxt-mini/") + else() + if(UNIX) + set(qxt-mini-c qxt-mini/plat/qxtglobalshortcut_x11.cpp qxt-mini/qxtglobalshortcut.cpp) + include_directories("qxt-mini/") + endif() + endif() # main app file(GLOB opentrack-bin-c "facetracknoir/*.cpp" "facetracknoir/*.rc") file(GLOB opentrack-bin-h "facetracknoir/*.h") - QT4_WRAP_CPP(opentrack-bin-moc ${opentrack-bin-h}) file(GLOB opentrack-bin-ui "facetracknoir/*.ui") file(GLOB opentrack-bin-rc "facetracknoir/*.qrc") - QT4_WRAP_UI(opentrack-bin-uih ${opentrack-bin-ui}) - QT4_ADD_RESOURCES(opentrack-bin-rcc ${opentrack-bin-rc}) + QT5_WRAP_UI(opentrack-bin-uih ${opentrack-bin-ui}) + QT5_ADD_RESOURCES(opentrack-bin-rcc ${opentrack-bin-rc}) file(GLOB opentrack-pose-widget-c "ftnoir_posewidget/*.cpp") file(GLOB opentrack-pose-widget-h "ftnoir_posewidget/*.h") - QT4_WRAP_CPP(opentrack-pose-widget-moc ${opentrack-pose-widget-h}) file(GLOB opentrack-pose-widget-rc "ftnoir_posewidget/*.qrc") - QT4_ADD_RESOURCES(opentrack-pose-widget-rcc ${opentrack-pose-widget-rc}) + QT5_ADD_RESOURCES(opentrack-pose-widget-rcc ${opentrack-pose-widget-rc}) file(GLOB opentrack-spline-widget-c "qfunctionconfigurator/*.cpp") file(GLOB opentrack-spline-widget-h "qfunctionconfigurator/*.h") - QT4_WRAP_CPP(opentrack-spline-widget-moc ${opentrack-spline-widget-h}) # filters file(GLOB opentrack-filter-accela-c "ftnoir_filter_accela/*.cpp") file(GLOB opentrack-filter-accela-h "ftnoir_filter_accela/*.h") - QT4_WRAP_CPP(opentrack-filter-accela-moc ${opentrack-filter-accela-h}) file(GLOB opentrack-filter-accela-ui "ftnoir_filter_accela/*.ui") file(GLOB opentrack-filter-accela-rc "ftnoir_filter_accela/*.qrc") - QT4_WRAP_UI(opentrack-filter-accela-uih ${opentrack-filter-accela-ui}) - QT4_ADD_RESOURCES(opentrack-filter-accela-rcc ${opentrack-filter-accela-rc}) + QT5_WRAP_UI(opentrack-filter-accela-uih ${opentrack-filter-accela-ui}) + QT5_ADD_RESOURCES(opentrack-filter-accela-rcc ${opentrack-filter-accela-rc}) file(GLOB opentrack-filter-ewma-c "ftnoir_filter_ewma2/*.cpp") file(GLOB opentrack-filter-ewma-h "ftnoir_filter_ewma2/*.h") - QT4_WRAP_CPP(opentrack-filter-ewma-moc ${opentrack-filter-ewma-h}) file(GLOB opentrack-filter-ewma-ui "ftnoir_filter_ewma2/*.ui") file(GLOB opentrack-filter-ewma-rc "ftnoir_filter_ewma2/*.qrc") - QT4_WRAP_UI(opentrack-filter-ewma-uih ${opentrack-filter-ewma-ui}) - QT4_ADD_RESOURCES(opentrack-filter-ewma-rcc ${opentrack-filter-ewma-rc}) + QT5_WRAP_UI(opentrack-filter-ewma-uih ${opentrack-filter-ewma-ui}) + QT5_ADD_RESOURCES(opentrack-filter-ewma-rcc ${opentrack-filter-ewma-rc}) # protocols file(GLOB opentrack-proto-fgfs-c "ftnoir_protocol_fg/*.cpp") file(GLOB opentrack-proto-fgfs-h "ftnoir_protocol_fg/*.h") - QT4_WRAP_CPP(opentrack-proto-fgfs-moc ${opentrack-proto-fgfs-h}) file(GLOB opentrack-proto-fgfs-ui "ftnoir_protocol_fg/*.ui") file(GLOB opentrack-proto-fgfs-rc "ftnoir_protocol_fg/*.qrc") - QT4_WRAP_UI(opentrack-proto-fgfs-uih ${opentrack-proto-fgfs-ui}) - QT4_ADD_RESOURCES(opentrack-proto-fgfs-rcc ${opentrack-proto-fgfs-rc}) + QT5_WRAP_UI(opentrack-proto-fgfs-uih ${opentrack-proto-fgfs-ui}) + QT5_ADD_RESOURCES(opentrack-proto-fgfs-rcc ${opentrack-proto-fgfs-rc}) file(GLOB opentrack-proto-fsuipc-c "ftnoir_protocol_fsuipc/*.cpp") file(GLOB opentrack-proto-fsuipc-h "ftnoir_protocol_fsuipc/*.h") - QT4_WRAP_CPP(opentrack-proto-fsuipc-moc ${opentrack-proto-fsuipc-h}) file(GLOB opentrack-proto-fsuipc-ui "ftnoir_protocol_fsuipc/*.ui") file(GLOB opentrack-proto-fsuipc-rc "ftnoir_protocol_fsuipc/*.qrc") - QT4_WRAP_UI(opentrack-proto-fsuipc-uih ${opentrack-proto-fsuipc-ui}) - QT4_ADD_RESOURCES(opentrack-proto-fsuipc-rcc ${opentrack-proto-fsuipc-rc}) + QT5_WRAP_UI(opentrack-proto-fsuipc-uih ${opentrack-proto-fsuipc-ui}) + QT5_ADD_RESOURCES(opentrack-proto-fsuipc-rcc ${opentrack-proto-fsuipc-rc}) file(GLOB opentrack-proto-freetrack-c "ftnoir_protocol_ft/*.cpp") file(GLOB opentrack-proto-freetrack-h "ftnoir_protocol_ft/*.h") - QT4_WRAP_CPP(opentrack-proto-freetrack-moc ${opentrack-proto-freetrack-h}) file(GLOB opentrack-proto-freetrack-ui "ftnoir_protocol_ft/*.ui") file(GLOB opentrack-proto-freetrack-rc "ftnoir_protocol_ft/*.qrc") - QT4_WRAP_UI(opentrack-proto-freetrack-uih ${opentrack-proto-freetrack-ui}) - QT4_ADD_RESOURCES(opentrack-proto-freetrack-rcc ${opentrack-proto-freetrack-rc}) + QT5_WRAP_UI(opentrack-proto-freetrack-uih ${opentrack-proto-freetrack-ui}) + QT5_ADD_RESOURCES(opentrack-proto-freetrack-rcc ${opentrack-proto-freetrack-rc}) file(GLOB opentrack-proto-udp-c "ftnoir_protocol_ftn/*.cpp") file(GLOB opentrack-proto-udp-h "ftnoir_protocol_ftn/*.h") - QT4_WRAP_CPP(opentrack-proto-udp-moc ${opentrack-proto-udp-h}) file(GLOB opentrack-proto-udp-ui "ftnoir_protocol_ftn/*.ui") file(GLOB opentrack-proto-udp-rc "ftnoir_protocol_ftn/*.qrc") - QT4_WRAP_UI(opentrack-proto-udp-uih ${opentrack-proto-udp-ui}) - QT4_ADD_RESOURCES(opentrack-proto-udp-rcc ${opentrack-proto-udp-rc}) + QT5_WRAP_UI(opentrack-proto-udp-uih ${opentrack-proto-udp-ui}) + QT5_ADD_RESOURCES(opentrack-proto-udp-rcc ${opentrack-proto-udp-rc}) file(GLOB opentrack-proto-wine-c "ftnoir_protocol_wine/*.cpp") file(GLOB opentrack-proto-wine-h "ftnoir_protocol_wine/*.h") - QT4_WRAP_CPP(opentrack-proto-wine-moc ${opentrack-proto-wine-h}) file(GLOB opentrack-proto-wine-ui "ftnoir_protocol_wine/*.ui") file(GLOB opentrack-proto-wine-rc "ftnoir_protocol_wine/*.qrc") - QT4_WRAP_UI(opentrack-proto-wine-uih ${opentrack-proto-wine-ui}) - QT4_ADD_RESOURCES(opentrack-proto-wine-rcc ${opentrack-proto-wine-rc}) + QT5_WRAP_UI(opentrack-proto-wine-uih ${opentrack-proto-wine-ui}) + QT5_ADD_RESOURCES(opentrack-proto-wine-rcc ${opentrack-proto-wine-rc}) file(GLOB opentrack-proto-win32-mouse-c "ftnoir_protocol_mouse/*.cpp") file(GLOB opentrack-proto-win32-mouse-h "ftnoir_protocol_mouse/*.h") - QT4_WRAP_CPP(opentrack-proto-win32-mouse-moc ${opentrack-proto-win32-mouse-h}) file(GLOB opentrack-proto-win32-mouse-ui "ftnoir_protocol_mouse/*.ui") file(GLOB opentrack-proto-win32-mouse-rc "ftnoir_protocol_mouse/*.qrc") - QT4_WRAP_UI(opentrack-proto-win32-mouse-uih ${opentrack-proto-win32-mouse-ui}) - QT4_ADD_RESOURCES(opentrack-proto-win32-mouse-rcc ${opentrack-proto-win32-mouse-rc}) + QT5_WRAP_UI(opentrack-proto-win32-mouse-uih ${opentrack-proto-win32-mouse-ui}) + QT5_ADD_RESOURCES(opentrack-proto-win32-mouse-rcc ${opentrack-proto-win32-mouse-rc}) file(GLOB opentrack-proto-simconnect-c "ftnoir_protocol_sc/*.cpp" "ftnoir_protocol_sc/ftnoir-protocol-sc.rc") file(GLOB opentrack-proto-simconnect-h "ftnoir_protocol_sc/*.h") - QT4_WRAP_CPP(opentrack-proto-simconnect-moc ${opentrack-proto-simconnect-h}) file(GLOB opentrack-proto-simconnect-ui "ftnoir_protocol_sc/*.ui") file(GLOB opentrack-proto-simconnect-rc "ftnoir_protocol_sc/*.qrc") - QT4_WRAP_UI(opentrack-proto-simconnect-uih ${opentrack-proto-simconnect-ui}) - QT4_ADD_RESOURCES(opentrack-proto-simconnect-rcc ${opentrack-proto-simconnect-rc}) + QT5_WRAP_UI(opentrack-proto-simconnect-uih ${opentrack-proto-simconnect-ui}) + QT5_ADD_RESOURCES(opentrack-proto-simconnect-rcc ${opentrack-proto-simconnect-rc}) file(GLOB opentrack-proto-vjoy-c "ftnoir_protocol_vjoy/*.cpp") file(GLOB opentrack-proto-vjoy-h "ftnoir_protocol_vjoy/*.h") - QT4_WRAP_CPP(opentrack-proto-vjoy-moc ${opentrack-proto-vjoy-h}) file(GLOB opentrack-proto-vjoy-ui "ftnoir_protocol_vjoy/*.ui") file(GLOB opentrack-proto-vjoy-rc "ftnoir_protocol_vjoy/*.qrc") - QT4_WRAP_UI(opentrack-proto-vjoy-uih ${opentrack-proto-vjoy-ui}) - QT4_ADD_RESOURCES(opentrack-proto-vjoy-rcc ${opentrack-proto-vjoy-rc}) + QT5_WRAP_UI(opentrack-proto-vjoy-uih ${opentrack-proto-vjoy-ui}) + QT5_ADD_RESOURCES(opentrack-proto-vjoy-rcc ${opentrack-proto-vjoy-rc}) file(GLOB opentrack-proto-libevdev-c "ftnoir_protocol_libevdev/*.cpp") file(GLOB opentrack-proto-libevdev-h "ftnoir_protocol_libevdev/*.h") - QT4_WRAP_CPP(opentrack-proto-libevdev-moc ${opentrack-proto-libevdev-h}) file(GLOB opentrack-proto-libevdev-ui "ftnoir_protocol_libevdev/*.ui") file(GLOB opentrack-proto-libevdev-rc "ftnoir_protocol_libevdev/*.qrc") - QT4_WRAP_UI(opentrack-proto-libevdev-uih ${opentrack-proto-libevdev-ui}) - QT4_ADD_RESOURCES(opentrack-proto-libevdev-rcc ${opentrack-proto-libevdev-rc}) + QT5_WRAP_UI(opentrack-proto-libevdev-uih ${opentrack-proto-libevdev-ui}) + QT5_ADD_RESOURCES(opentrack-proto-libevdev-rcc ${opentrack-proto-libevdev-rc}) # trackers file(GLOB opentrack-tracker-ht-c "ftnoir_tracker_ht/*.cpp") file(GLOB opentrack-tracker-ht-h "ftnoir_tracker_ht/*.h") - QT4_WRAP_CPP(opentrack-tracker-ht-moc ${opentrack-tracker-ht-h}) file(GLOB opentrack-tracker-ht-ui "ftnoir_tracker_ht/*.ui") file(GLOB opentrack-tracker-ht-rc "ftnoir_tracker_ht/*.qrc") - QT4_WRAP_UI(opentrack-tracker-ht-uih ${opentrack-tracker-ht-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-ht-rcc ${opentrack-tracker-ht-rc}) + QT5_WRAP_UI(opentrack-tracker-ht-uih ${opentrack-tracker-ht-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-ht-rcc ${opentrack-tracker-ht-rc}) file(GLOB opentrack-tracker-aruco-c "ftnoir_tracker_aruco/*.cpp") file(GLOB opentrack-tracker-aruco-h "ftnoir_tracker_aruco/*.h") - QT4_WRAP_CPP(opentrack-tracker-aruco-moc ${opentrack-tracker-aruco-h}) file(GLOB opentrack-tracker-aruco-ui "ftnoir_tracker_aruco/*.ui") file(GLOB opentrack-tracker-aruco-rc "ftnoir_tracker_aruco/*.qrc") - QT4_WRAP_UI(opentrack-tracker-aruco-uih ${opentrack-tracker-aruco-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-aruco-rcc ${opentrack-tracker-aruco-rc}) + QT5_WRAP_UI(opentrack-tracker-aruco-uih ${opentrack-tracker-aruco-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-aruco-rcc ${opentrack-tracker-aruco-rc}) file(GLOB opentrack-tracker-pt-c "FTNoIR_Tracker_PT/*.cpp") file(GLOB opentrack-tracker-pt-h "FTNoIR_Tracker_PT/*.h") - QT4_WRAP_CPP(opentrack-tracker-pt-moc ${opentrack-tracker-pt-h}) file(GLOB opentrack-tracker-pt-ui "FTNoIR_Tracker_PT/*.ui") file(GLOB opentrack-tracker-pt-rc "FTNoIR_Tracker_PT/*.qrc") - QT4_WRAP_UI(opentrack-tracker-pt-uih ${opentrack-tracker-pt-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-pt-rcc ${opentrack-tracker-pt-rc}) + QT5_WRAP_UI(opentrack-tracker-pt-uih ${opentrack-tracker-pt-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-pt-rcc ${opentrack-tracker-pt-rc}) file(GLOB opentrack-tracker-udp-c "ftnoir_tracker_udp/*.cpp") file(GLOB opentrack-tracker-udp-h "ftnoir_tracker_udp/*.h") - QT4_WRAP_CPP(opentrack-tracker-udp-moc ${opentrack-tracker-udp-h}) file(GLOB opentrack-tracker-udp-ui "ftnoir_tracker_udp/*.ui") file(GLOB opentrack-tracker-udp-rc "ftnoir_tracker_udp/*.qrc") - QT4_WRAP_UI(opentrack-tracker-udp-uih ${opentrack-tracker-udp-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-udp-rcc ${opentrack-tracker-udp-rc}) + QT5_WRAP_UI(opentrack-tracker-udp-uih ${opentrack-tracker-udp-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-udp-rcc ${opentrack-tracker-udp-rc}) file(GLOB opentrack-tracker-rift-c "ftnoir_tracker_rift/*.cpp") file(GLOB opentrack-tracker-rift-h "ftnoir_tracker_rift/*.h") - QT4_WRAP_CPP(opentrack-tracker-rift-moc ${opentrack-tracker-rift-h}) file(GLOB opentrack-tracker-rift-ui "ftnoir_tracker_rift/*.ui") file(GLOB opentrack-tracker-rift-rc "ftnoir_tracker_rift/*.qrc") - QT4_WRAP_UI(opentrack-tracker-rift-uih ${opentrack-tracker-rift-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-rift-rcc ${opentrack-tracker-rift-rc}) + QT5_WRAP_UI(opentrack-tracker-rift-uih ${opentrack-tracker-rift-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-rift-rcc ${opentrack-tracker-rift-rc}) file(GLOB opentrack-tracker-hydra-c "ftnoir_tracker_hydra/*.cpp") file(GLOB opentrack-tracker-hydra-h "ftnoir_tracker_hydra/*.h") - QT4_WRAP_CPP(opentrack-tracker-hydra-moc ${opentrack-tracker-hydra-h}) file(GLOB opentrack-tracker-hydra-ui "ftnoir_tracker_hydra/*.ui") file(GLOB opentrack-tracker-hydra-rc "ftnoir_tracker_hydra/*.qrc") - QT4_WRAP_UI(opentrack-tracker-hydra-uih ${opentrack-tracker-hydra-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-hydra-rcc ${opentrack-tracker-hydra-rc}) + QT5_WRAP_UI(opentrack-tracker-hydra-uih ${opentrack-tracker-hydra-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-hydra-rcc ${opentrack-tracker-hydra-rc}) file(GLOB opentrack-tracker-faceapi-c "ftnoir_tracker_sm/*.cpp") file(GLOB opentrack-tracker-faceapi-h "ftnoir_tracker_sm/*.h") - QT4_WRAP_CPP(opentrack-tracker-faceapi-moc ${opentrack-tracker-faceapi-h}) file(GLOB opentrack-tracker-faceapi-ui "ftnoir_tracker_sm/*.ui") file(GLOB opentrack-tracker-faceapi-rc "ftnoir_tracker_sm/*.qrc") - QT4_WRAP_UI(opentrack-tracker-faceapi-uih ${opentrack-tracker-faceapi-ui}) - QT4_ADD_RESOURCES(opentrack-tracker-faceapi-rcc ${opentrack-tracker-faceapi-rc}) + QT5_WRAP_UI(opentrack-tracker-faceapi-uih ${opentrack-tracker-faceapi-ui}) + QT5_ADD_RESOURCES(opentrack-tracker-faceapi-rcc ${opentrack-tracker-faceapi-rc}) file(GLOB opentrack-csv-c "ftnoir_csv/*.cpp") @@ -321,11 +305,7 @@ endif() target_link_libraries(opentrack-compat rt) endif() - IF(CMAKE_BUILD_TYPE MATCHES DEBUG) - SET(MY_QT_LIBS ${QT_QTCORE_LIBRARY_DEBUG} ${QT_QTGUI_LIBRARY_DEBUG} ${QT_QTNETWORK_LIBRARY_DEBUG} ${QT_QTXML_LIBRARY_DEBUG}) - ELSE() - SET(MY_QT_LIBS ${QT_QTCORE_LIBRARY_RELEASE} ${QT_QTGUI_LIBRARY_RELEASE} ${QT_QTNETWORK_LIBRARY_RELEASE} ${QT_QTXML_LIBRARY_RELEASE}) - ENDIF() + SET(MY_QT_LIBS ${Qt5Widgets_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Network_LIBRARIES} ${Qt5Xml_LIBRARIES} ${Qt5Core_LIBRARIES}) add_library(opentrack-csv SHARED ${opentrack-csv-c}) target_link_libraries(opentrack-csv ${MY_QT_LIBS}) @@ -564,7 +544,20 @@ endif() else() set(opentrack-win32-executable "") endif() + if(UNIX) + add_library(opentrack-qxt-mini SHARED ${qxt-mini-c}) + SET_TARGET_PROPERTIES(opentrack-qxt-mini PROPERTIES COMPILE_FLAGS "-DBUILD_QXT_CORE=42 -DBUILD_QXT_WIDGETS=42 -DBUILD_QXT_GUI=42") + target_link_libraries(opentrack-qxt-mini ${MY_QT_LIBS}) + endif() add_executable(opentrack ${opentrack-win32-executable} ${opentrack-bin-c} ${opentrack-bin-moc} ${opentrack-bin-uih} ${opentrack-bin-rcc}) + if(UNIX) + target_link_libraries(opentrack opentrack-qxt-mini) + endif() + + if(UNIX) + install(TARGETS opentrack-qxt-mini DESTINATION .) + endif() + if(WIN32) target_link_libraries(opentrack "${CMAKE_SOURCE_DIR}/dinput/dinput8.lib" "${CMAKE_SOURCE_DIR}/dinput/dxguid.lib" @@ -576,7 +569,7 @@ endif() if(MSVC) SET_TARGET_PROPERTIES(opentrack PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup") endif() - target_link_libraries(opentrack opentrack-pose-widget opentrack-spline-widget ${MY_QT_LIBS} ${QXT_QXTCORE_LIB_RELEASE} ${QXT_QXTGUI_LIB_RELEASE}) + target_link_libraries(opentrack opentrack-pose-widget opentrack-spline-widget ${MY_QT_LIBS} ${QXT_QXTCORE_LIB_RELEASE} ${QXT_QXTWIDGETS_LIB_RELEASE}) if(NOT WIN32) target_link_libraries(opentrack dl) endif() |