mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
27 lines
560 B
CMake
27 lines
560 B
CMake
project(zeit)
|
|
cmake_minimum_required (VERSION 3.1.0)
|
|
|
|
option(BUILD_TESTS "Build tests" OFF)
|
|
|
|
set(VERSION_MAJOR 0)
|
|
set(VERSION_MINOR 4)
|
|
set(VERSION_PATCH 0)
|
|
set(ZEIT_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
|
set(CRONTAB_V "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
|
|
|
set(QT_MIN_VERSION "5.2.0")
|
|
find_package (Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
|
Core
|
|
Gui
|
|
Widgets
|
|
Test
|
|
)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
add_subdirectory(crontablib)
|
|
add_subdirectory(src)
|
|
|
|
if(BUILD_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|