-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
45 lines (37 loc) · 1.06 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
45
cmake_minimum_required(VERSION 3.10.0)
project("Files"
VERSION "0.2.0"
DESCRIPTION "File manager"
LANGUAGES CXX C
)
## Shared macros and functions:
if(NOT LIRI_LOCAL_ECM)
find_package(LiriCMakeShared "2.0.0" REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}")
endif()
## Set minimum versions required.
set(QT_MIN_VERSION "5.10.0")
## Add some paths to check for CMake modules:
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
## Liri specific setup common for all modules:
include(LiriSetup)
## Features:
option(FILES_ENABLE_TAGLIB "Extract tags with taglib" ON)
add_feature_info("Files::TagLib" FILES_ENABLE_TAGLIB "Extract tags with taglib")
## Find Qt 5.
find_package(Qt5 "${QT_MIN_VERSION}"
CONFIG REQUIRED
COMPONENTS
Core
Gui
Widgets
Qml
Quick
QuickControls2
LinguistTools
)
## Add subdirectories:
add_subdirectory(src/app)
add_subdirectory(src/imports/archives)
add_subdirectory(src/imports/folderlistmodel)
add_subdirectory(src/imports/placesmodel)