-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 979 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.0.2)
project(storage-provider-webdav VERSION "0.2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -pedantic -Wextra -fvisibility=hidden")
include(CTest)
include(FindPkgConfig)
include(GNUInstallDirs)
enable_testing()
find_package(Boost 1.56 COMPONENTS thread system REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5DBus REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Test REQUIRED)
find_package(Qt5Xml REQUIRED)
pkg_check_modules(SF_PROVIDER REQUIRED storage-framework-provider-1>=0.3)
pkg_check_modules(SF_CLIENT REQUIRED storage-framework-qt-client-2>=0.3)
add_definitions(-DQT_NO_KEYWORDS)
add_subdirectory(src)
add_subdirectory(data)
add_subdirectory(tests)
find_package(CoverageReport)
enable_coverage_report(
TARGETS
dav-provider-lib
storage-provider-nextcloud
storage-provider-owncloud
FILTER
${CMAKE_SOURCE_DIR}/tests/*
${CMAKE_BINARY_DIR}/*
TESTS
${UNIT_TEST_TARGETS}
)