forked from guerinoni/qTsConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (55 loc) · 1.34 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.10)
project(
qTsConverter
LANGUAGES CXX
VERSION "4.4.0"
DESCRIPTION
"Tool used to convert `.ts` file of Qt translation in other format more editable using an office suite."
)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_FLAGS_INIT
"-Werror"
"-Wall"
"-Wextra"
"-Wpedantic"
"-Warray-bounds"
"-Wdouble-promotion"
"-Weffc++"
"-Wextra"
"-Wimplicit-fallthrough"
"-Winit-self"
"-Wfloat-equal"
"-Wformat=2"
"-Wmissing-include-dirs"
"-Wno-unused-const-variable"
"-Wno-unused-function"
"-Wnull-dereference"
"-Wparentheses"
"-Wpedantic"
"-Wshift-overflow"
"-Wshadow"
"-Wstrict-aliasing=1"
"-Wstrict-overflow=5"
"-Wtautological-compare"
"-Wuninitialized")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
include(cmake/Sanitizers.cmake)
include(cmake/CompilerWarnings.cmake)
set(BUILD_TESTS
OFF
CACHE BOOL "build tests" FORCE)
set(STATIC_LIB
ON
CACHE BOOL "build as static lib if ON, otherwise build shared lib" FORCE)
add_subdirectory(3rd-party/qtcsv)
add_subdirectory(3rd-party/qtxlsx)
add_subdirectory(src)
enable_testing()
add_subdirectory(tests)
add_subdirectory(data)