~nick-dedekind/unity8/lp1307048-appointment-colour

« back to all changes in this revision

Viewing changes to tests/uqmlscene/CMakeLists.txt

  • Committer: Daniel d'Andrada
  • Date: 2013-06-14 19:22:35 UTC
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: daniel.dandrada@canonical.com-20130614192235-hs34at3gv87gz7cn
Added uqmlscene tool and tryFoo targets for manual testing

uqmlscene - qmlscene modified to use MouseTouchAdaptor.

You can now easily interact with the test of some Foo component by
issuing "make tryFoo".

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(FindPkgConfig)
 
2
find_package(Qt5Qml)
 
3
find_package(Qt5Quick)
 
4
find_package(Qt5Gui)
 
5
 
 
6
add_executable(uqmlscene
 
7
    ${shellapplication_MOC_SRCS}
 
8
    main.cpp
 
9
    ../../MouseTouchAdaptor.cpp
 
10
    )
 
11
 
 
12
qt5_use_modules(uqmlscene Qml Quick Test)
 
13
pkg_check_modules(XCB REQUIRED xcb)
 
14
 
 
15
if (NOT "${XCB_INCLUDE_DIRS}" STREQUAL "")
 
16
    set_target_properties(uqmlscene PROPERTIES INCLUDE_DIRECTORIES ${XCB_INCLUDE_DIRS})
 
17
endif()
 
18
 
 
19
target_link_libraries(uqmlscene
 
20
    ${Qt5Qml_LIBRARIES}
 
21
    ${Qt5Quick_LIBRARIES}
 
22
    ${XCB_LDFLAGS}
 
23
    )