Skip to content

Instantly share code, notes, and snippets.

@greg-hellings
Created January 9, 2014 14:25
Show Gist options
  • Save greg-hellings/8334887 to your computer and use it in GitHub Desktop.
Save greg-hellings/8334887 to your computer and use it in GitHub Desktop.
IF(Qt5Core_FOUND)
TARGET_LINK_LIBRARIES("bibletime"
${CLucene_LIBRARY}
${Sword_LDFLAGS}
)
IF(${BIBLETIME_FRONTEND} STREQUAL "MOBILE")
qt5_use_modules("bibletime" Widgets Qml Quick Network)
ELSE()
IF(BT_Use_DBus)
qt5_use_modules("bibletime" DBus Widgets WebKit WebKitWidgets Xml Network)
ELSE()
qt5_use_modules("bibletime" Widgets WebKit WebKitWidgets Xml Network)
ENDIF()
ENDIF()
ELSE()
IF(BT_Use_DBus)
SET(QT_USE_QTDBUS 1) # Required by INCLUDE(${QT_USE_FILE}) below
MESSAGE(STATUS "Using DBUS")
ELSE()
ADD_DEFINITIONS("-DNO_DBUS")
MESSAGE(STATUS "No DBUS found")
ENDIF()
# If cmake says that qdbusxml2cpp is missing, uncomment the following line
#SET(QT_DBUSXML2CPP_EXECUTABLE "/usr/bin/qdbusxml2cpp") #TEMP HACK?
INCLUDE(${QT_USE_FILE})
TARGET_LINK_LIBRARIES("bibletime"
${QT_LIBRARIES}
${CLucene_LIBRARY}
${Sword_LDFLAGS}
)
ENDIF()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment