~ken-vandine/content-hub/noclick

« back to all changes in this revision

Viewing changes to tools/clipboard/CMakeLists.txt

  • Committer: Ken VanDine
  • Date: 2017-03-15 12:54:42 UTC
  • mfrom: (321.1.7 content-hub)
  • Revision ID: ken.vandine@canonical.com-20170315125442-jultuh0alb8kjknp
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright © 2016 Canonical Ltd.
 
2
#
 
3
# This program is free software: you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License version 3 as
 
5
# published by the Free Software Foundation.
 
6
#
 
7
# This program is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
# GNU General Public License for more details.
 
11
#
 
12
# You should have received a copy of the GNU General Public License
 
13
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
#
 
15
# Authored by: Arthur Mello <arthur.mello@canonical.com>
 
16
 
 
17
set(CLIPBOARD_APP content-hub-clipboard)
 
18
 
 
19
include_directories(
 
20
  ${CMAKE_CURRENT_BINARY_DIR}
 
21
  ${CMAKE_SOURCE_DIR}/src/com/ubuntu/content
 
22
  ${CMAKE_BINARY_DIR}/src/com/ubuntu/content
 
23
  ${UBUNTU_LAUNCH_INCLUDE_DIRS}
 
24
)
 
25
 
 
26
set(clipboard_app_HDRS
 
27
    paste-data-provider.h
 
28
    paste-image-provider.h
 
29
    paste-data-model.h
 
30
    paste-data-filter-model.h
 
31
    clipboardapplication.h)
 
32
 
 
33
set(clipboard_app_SRCS
 
34
    paste-data-provider.cpp
 
35
    paste-image-provider.cpp
 
36
    paste-data-model.cpp
 
37
    paste-data-filter-model.cpp
 
38
    clipboardapplication.cpp
 
39
    main.cpp)
 
40
 
 
41
qt5_add_resources(RESOURCES qml.qrc)
 
42
 
 
43
add_executable(${CLIPBOARD_APP}
 
44
    ${clipboard_app_SRCS}
 
45
    ${RESOURCES}
 
46
)
 
47
 
 
48
qt5_use_modules(${CLIPBOARD_APP} Core Gui Quick Qml Widgets DBus)
 
49
find_package(Qt5Core 5.4 REQUIRED)
 
50
include_directories(
 
51
    ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
 
52
    )
 
53
 
 
54
set_target_properties(${CLIPBOARD_APP}
 
55
  PROPERTIES
 
56
  AUTOMOC TRUE
 
57
)
 
58
 
 
59
target_link_libraries(${CLIPBOARD_APP}
 
60
  content-hub
 
61
  ${UBUNTU_LAUNCH_LDFLAGS}
 
62
)
 
63
 
 
64
install(
 
65
  TARGETS ${CLIPBOARD_APP}
 
66
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
 
67
)
 
68
 
 
69
install(
 
70
  FILES content-hub-clipboard.desktop
 
71
  DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
 
72
)