~gerboland/unity/8-refactor-wm-and-test

« back to all changes in this revision

Viewing changes to tests/qmltests/plugins/Unity/CMakeLists.txt

  • Committer: Michał Sawicz
  • Date: 2013-06-05 22:03:08 UTC
  • Revision ID: michal.sawicz@canonical.com-20130605220308-yny8fv3futtr04fg
Inital unity8 commit.

Previous history can be found at https://code.launchpad.net/~unity-team/unity/phablet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(CMAKE_AUTOMOC ON)
 
2
 
 
3
include(FindPkgConfig)
 
4
find_package(Qt5Core REQUIRED)
 
5
find_package(Qt5Quick REQUIRED)
 
6
pkg_search_module(DEE dee-1.0 REQUIRED)
 
7
pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
 
8
pkg_search_module(DEEQT libdee-qt5 REQUIRED)
 
9
 
 
10
include_directories(
 
11
  ${CMAKE_SOURCE_DIR}/plugins/Unity
 
12
  ${CMAKE_CURRENT_BINARY_DIR}
 
13
  ${Qt5Core_INCLUDE_DIRS}
 
14
  ${Qt5Quick_INCLUDE_DIRS}
 
15
  ${DEE_INCLUDE_DIRS}
 
16
  ${DEEQT_INCLUDE_DIRS}
 
17
)
 
18
 
 
19
add_definitions(-DQT_NO_KEYWORDS)
 
20
 
 
21
set(UnityQML_SOURCES
 
22
  ${CMAKE_SOURCE_DIR}/plugins/Unity/categories.cpp
 
23
  ${CMAKE_SOURCE_DIR}/plugins/Unity/categoryfilter.cpp
 
24
  ${CMAKE_SOURCE_DIR}/plugins/Utils/qsortfilterproxymodelqml.cpp
 
25
  fake_lens.cpp
 
26
  fake_lenses.cpp
 
27
  fake_unity_plugin.cpp
 
28
  fake_launchermodel.cpp
 
29
)
 
30
 
 
31
add_library(FakeUnityQml MODULE ${UnityQML_SOURCES})
 
32
target_link_libraries(FakeUnityQml
 
33
  ${Qt5Core_LIBRARIES}
 
34
  ${Qt5Quick_LIBRARIES}
 
35
  ${DEEQT_LDFLAGS}
 
36
  ${GOBJECT_LDFLAGS}
 
37
)
 
38
 
 
39
qt5_use_modules(FakeUnityQml Qml)
 
40
 
 
41
# copy qmldir file into build directory for shadow builds
 
42
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
 
43
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
44
    )