~osomon/webbrowser-app/maxCacheSizeHint

« back to all changes in this revision

Viewing changes to src/app/unity8/libs/UbuntuGestures/CMakeLists.txt

  • Committer: Olivier Tilloy
  • Date: 2015-04-08 15:29:44 UTC
  • mfrom: (930.1.25 webbrowser-app)
  • Revision ID: olivier.tilloy@canonical.com-20150408152944-zg7hpedldixspgf7
Merge the latest changes from trunk and resolve a conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# in order to include Qt's private headers
 
2
remove_definitions(-DQT_NO_KEYWORDS)
 
3
 
 
4
set(UbuntuGestures_SOURCES
 
5
    CandidateInactivityTimer.cpp
 
6
    DebugHelpers.cpp
 
7
    Timer.cpp
 
8
    TouchOwnershipEvent.cpp
 
9
    TouchRegistry.cpp
 
10
    UnownedTouchEvent.cpp
 
11
)
 
12
 
 
13
add_definitions(-DUBUNTUGESTURES_LIBRARY)
 
14
 
 
15
add_library(UbuntuGestures STATIC ${UbuntuGestures_SOURCES})
 
16
 
 
17
qt5_use_modules(UbuntuGestures Core Quick)
 
18
 
 
19
# So that Foo.cpp can #include "Foo.moc"
 
20
include_directories(${CMAKE_CURRENT_BINARY_DIR})
 
21
 
 
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)
 
26
else()
 
27
    SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/QtV8/${Qt5Core_VERSION_STRING}/QtV8)
 
28
endif()
 
29
 
 
30
# DANGER! DANGER! Using Qt's private API!
 
31
include_directories(
 
32
    ${Qt5Qml_PRIVATE_INCLUDE_DIRS}
 
33
    ${Qt5Quick_INCLUDE_DIRS}
 
34
    ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
 
35
    ${Qt5V8_PRIVATE_INCLUDE_DIR}
 
36
)