1
# -*- Mode: CMake; indent-tabs-mode: nil; tab-width: 2 -*-
3
# This file is part of Déjà Dup.
4
# For copyright information, see AUTHORS.
6
# Déjà Dup is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3 of the License, or
9
# (at your option) any later version.
11
# Déjà Dup is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with Déjà Dup. If not, see <http://www.gnu.org/licenses/>.
19
vala_precompile(VALA_C ConfigBool.vala
25
ConfigLabelBackupDate.vala
26
ConfigLabelDescription.vala
27
ConfigLabelLocation.vala
30
ConfigLocationCustom.vala
31
ConfigLocationDAV.vala
32
ConfigLocationFile.vala
33
ConfigLocationFTP.vala
34
ConfigLocationRackspace.vala
36
ConfigLocationSSH.vala
37
ConfigLocationSMB.vala
38
ConfigLocationTable.vala
40
ConfigLocationVolume.vala
44
ConfigURLPartBool.vala
47
PACKAGES gtk+-3.0 libnotify libpeas-1.0 libsecret-1 ${UNITY_PACKAGE}
48
CUSTOM_VAPIS ${CMAKE_BINARY_DIR}/libdeja/deja.vapi
49
${CMAKE_SOURCE_DIR}/vapi/config.vapi
50
${CMAKE_SOURCE_DIR}/vapi/uriutils.vapi
51
OPTIONS ${COMMON_VFLAGS}
53
GENERATE_HEADER widgets)
54
add_library(widgets SHARED ${VALA_C})
55
target_link_libraries(widgets deja ${GTK_LDFLAGS} ${NOTIFY_LDFLAGS} ${PEAS_LDFLAGS} ${SECRET_LDFLAGS} ${UNITY_LDFLAGS})
56
set_target_properties(widgets PROPERTIES
57
INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja;${CMAKE_SOURCE_DIR}/libdeja"
58
COMPILE_FLAGS "${GTK_CFLAGS} ${NOTIFY_CFLAGS} ${PEAS_CFLAGS} ${SECRET_CFLAGS} ${UNITY_CFLAGS} ${COMMON_CFLAGS}")
59
install(TARGETS widgets DESTINATION "${PKG_LIBDIR}")