1
# Copyright © 2016 Canonical Ltd.
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.
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.
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/>.
15
# Authored by: Arthur Mello <arthur.mello@canonical.com>
17
set(CLIPBOARD_APP content-hub-clipboard)
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}
26
set(clipboard_app_HDRS
28
paste-image-provider.h
30
paste-data-filter-model.h
31
clipboardapplication.h)
33
set(clipboard_app_SRCS
34
paste-data-provider.cpp
35
paste-image-provider.cpp
37
paste-data-filter-model.cpp
38
clipboardapplication.cpp
41
qt5_add_resources(RESOURCES qml.qrc)
43
add_executable(${CLIPBOARD_APP}
48
qt5_use_modules(${CLIPBOARD_APP} Core Gui Quick Qml Widgets DBus)
49
find_package(Qt5Core 5.4 REQUIRED)
51
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
54
set_target_properties(${CLIPBOARD_APP}
59
target_link_libraries(${CLIPBOARD_APP}
61
${UBUNTU_LAUNCH_LDFLAGS}
65
TARGETS ${CLIPBOARD_APP}
66
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
70
FILES content-hub-clipboard.desktop
71
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications