-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCMakeLists.txt
42 lines (24 loc) · 924 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
39
40
41
42
cmake_minimum_required(VERSION 3.16)
project(rolisteam VERSION 1.10.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(CMAKE_CURRENT_BINARY_DIR ON)
set(CMAKE_AUTORCC ON)
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CTest)
option(CODE_COVERAGE OFF)
option(DEBUG_MODE "enable more debug report" OFF)
option(WARNING_AS_ERROR "Set all warning as error" OFF)
find_package(Qt6 COMPONENTS Core Widgets Gui LinguistTools QmlImportScanner REQUIRED)
configure_file(version.h.in version.h @ONLY)
add_subdirectory(translations)
add_subdirectory(src)
set(documentation README.md HelpMe.md)
if(EXISTS ${IFW_PATH})
include(install_helper)
setupCPack(${IFW_PATH})
endif()
configure_file(scripts/generate_coverage.sh.in generate_coverage.sh @ONLY)