forked from Nitrux/nx-software-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (26 loc) · 914 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
project(nx-software-center)
set(PROJECT_VERSION 2.3)
cmake_minimum_required(VERSION 3.3)
cmake_policy(SET CMP0037 NEW)
cmake_policy(SET CMP0063 NEW)
# Enable C++14 support
set(CMAKE_CXX_STANDARD 14)
# Enable exceptions
add_compile_options("-fexceptions")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
find_package(ECM 0.0.11 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(FeatureSummary)
include(ExternalProject)
include(cmake/libappimage.cmake)
add_subdirectory(src)
add_subdirectory(test)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
install(FILES "org.nxos.softwarecenter.desktop" DESTINATION share/applications)
include(cmake/cpack_deb.cmake)