-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
44 lines (37 loc) · 1.07 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.5)
project(zeit)
option(BUILD_TESTS "Build tests" OFF)
set(VERSION_MAJOR 0)
set(VERSION_MINOR 6)
set(VERSION_PATCH 95)
set(ZEIT_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
set(CRONTAB_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
file(READ rev ZEIT_REVISION LIMIT 9)
if(WITH_QT6)
find_package (Qt6 6.2.0 CONFIG REQUIRED COMPONENTS Core Gui Widgets Test)
# root actions support KF6
find_package(KF6Auth)
if(KF6Auth_FOUND)
find_package(KF6CoreAddons REQUIRED)
if(KF6CoreAddons_FOUND)
set(BUILD_HELPER TRUE)
endif()
endif()
else()
find_package (Qt5 5.14.0 CONFIG REQUIRED COMPONENTS Core Gui Widgets Test)
# root actions support KF5
find_package(KF5Auth)
if(KF5Auth_FOUND)
find_package(KF5CoreAddons REQUIRED)
if(KF5CoreAddons_FOUND)
set(BUILD_HELPER TRUE)
endif()
endif()
endif()
set(CMAKE_AUTOMOC ON)
add_subdirectory(crontablib)
add_subdirectory(src)
add_subdirectory(misc)
if(BUILD_TESTS)
add_subdirectory(tests)
endif()