-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (35 loc) · 1.02 KB
/
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
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.0.2)
project(encrypting-cloud-storages)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake-Modules)
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/build)
include(GNUInstallDirs)
find_package(Gpgme REQUIRED)
if(NOT GPGME_FOUND)
message(FATAL_ERROR "Could not find GPGME")
endif()
find_package(fuse REQUIRED)
if(NOT FUSE_FOUND)
message(FATAL_ERROR "Could not find FUSE")
endif()
find_program(MAKEPASSWD makepasswd)
if(${MAKEPASSWD} STREQUAL "MAKEPASSWD-NOTFOUND")
message(FATAL_ERROR "Could not find makepasswd")
endif()
find_program(ENCFS encfs)
if(${ENCFS} STREQUAL "ENCFS-NOTFOUND")
message(FATAL_ERROR "Could not find encfs")
endif()
find_package(Threads REQUIRED)
find_package(GTK3 REQUIRED)
if(NOT GTK3_FOUND)
message(FATAL_ERROR "Could not find GTK3")
endif()
find_package(CMocka REQUIRED)
if(NOT CMOCKA_FOUND)
message(FATAL_ERROR "Could not find cmocka")
endif()
enable_testing()
add_compile_options(--coverage)
add_link_options(--coverage)
add_subdirectory(fuseecs)
add_subdirectory(share_a_folder)