~unity-team/+junk/dashboard-playground

« back to all changes in this revision

Viewing changes to tests/qmltests/plugins/Ubuntu/ChewieUI/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
 
 
7
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wextra -std=c++11")
 
8
 
 
9
include_directories(
 
10
  ${CMAKE_CURRENT_BINARY_DIR}
 
11
  ${Qt5Core_INCLUDE_DIRS}
 
12
  ${Qt5Quick_INCLUDE_DIRS}
 
13
)
 
14
 
 
15
add_definitions(-DQT_NO_KEYWORDS)
 
16
 
 
17
set(ChewieUIQML_SOURCES
 
18
  fake_chewie_plugin.cpp
 
19
  fake_pluginmodel.cpp
 
20
)
 
21
 
 
22
add_library(FakeChewieUIQml MODULE ${ChewieUIQML_SOURCES})
 
23
target_link_libraries(FakeChewieUIQml
 
24
  ${Qt5Core_LIBRARIES}
 
25
  ${Qt5Quick_LIBRARIES}
 
26
)
 
27
 
 
28
qt5_use_modules(FakeChewieUIQml Qml)
 
29
 
 
30
# copy qmldir file into build directory for shadow builds
 
31
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
 
32
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
33
    )