-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 889 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
cmake_minimum_required(VERSION 3.6)
project(appimage-thumbnailer VERSION 0.1.1)
option(USE_SYSTEM_LIBAPPIMAGE "link againts system provided libappimage instead of bundled one")
# == setup dependencies ==
find_package(PkgConfig REQUIRED)
# system libappimage
if(USE_SYSTEM_LIBAPPIMAGE)
find_package(libappimage REQUIRED)
endif()
# gnome dependencies
include(GNUInstallDirs)
# kde dependencies
find_package(ECM 1.0.0 REQUIRED NO_MODULE) # needed to be able to find KF5 below
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(KDE_INSTALL_DIRS_NO_CMAKE_VARIABLES ON)
include(KDEInstallDirs)
find_package(Qt5 CONFIG REQUIRED COMPONENTS Core)
find_package(KF5 REQUIRED COMPONENTS KIO)
# == setup sub-dirs ==
add_subdirectory("lib")
add_subdirectory("src")
add_subdirectory("resources")
# == packaging ==
include("cmake/cpack_settings.cmake")
include("cmake/cpack_deb.cmake")
include(CPack)