1
# in order to include Qt's private headers
2
remove_definitions(-DQT_NO_KEYWORDS)
4
set(UbuntuGestures_SOURCES
5
CandidateInactivityTimer.cpp
8
TouchOwnershipEvent.cpp
13
add_definitions(-DUBUNTUGESTURES_LIBRARY)
15
add_library(UbuntuGestures STATIC ${UbuntuGestures_SOURCES})
17
qt5_use_modules(UbuntuGestures Core Quick)
19
# So that Foo.cpp can #include "Foo.moc"
20
include_directories(${CMAKE_CURRENT_BINARY_DIR})
22
# There's no cmake var for v8 include path :-/ so create one
23
LIST(GET Qt5Core_INCLUDE_DIRS 0 QtCoreDir0)
24
if(${Qt5Core_VERSION_STRING} VERSION_LESS "5.1.0")
25
SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/../QtV8/${Qt5Core_VERSION_STRING}/QtV8)
27
SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/QtV8/${Qt5Core_VERSION_STRING}/QtV8)
30
# DANGER! DANGER! Using Qt's private API!
32
${Qt5Qml_PRIVATE_INCLUDE_DIRS}
33
${Qt5Quick_INCLUDE_DIRS}
34
${Qt5Quick_PRIVATE_INCLUDE_DIRS}
35
${Qt5V8_PRIVATE_INCLUDE_DIR}