forked from azubieta/appimage-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (27 loc) · 920 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
cmake_minimum_required(VERSION 3.8)
project(appimage-user-tool)
set(CMAKE_CXX_STANDARD 11)
# Versioning (mainly for packaging)
include(cmake/versioning.cmake)
# Use GNU Install dirs
include(GNUInstallDirs)
# Dependencies
# avoid collissions with existing libappimage target when used from other projects
if(NOT TARGET libappimage)
find_package(libappimage REQUIRED)
endif()
find_package(Qt5 COMPONENTS Core Network XmlPatterns Gui REQUIRED)
## Config
option(INSTALL_LIBAPPIMAGE "Install libAppImage as part of this project" OFF)
option(INSTALL_ATTICA "Install KF5 Attica as part of this project" OFF)
# Source
add_subdirectory(src)
add_subdirectory(res)
# Packaging
# only necessary when not being used from other projects
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
include(cmake/cpack_general.cmake)
include(cmake/cpack_deb.cmake)
include(cmake/cpack_rpm.cmake)
include(CPack)
endif()