aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: d83676cba189c1c19bd1c320f37b8ca09c3d611d (plain)
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
cmake_minimum_required(VERSION 3.16)

project(smolbote VERSION 0.1.0 LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")

include(CppCheck)
include(CompilerOptions)
include(FeatureSummary)
include(GNUInstallDirs)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# set C++ standard for all targets
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# set PIE for all targets
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# dependencies
find_package(GTest)
enable_testing()

find_package(spdlog REQUIRED)

find_package(Qt6 6.0.0 REQUIRED COMPONENTS
    Network
    Widgets
    SvgWidgets
    WebEngineCore
    WebEngineWidgets
    Concurrent
)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
add_subdirectory(third_party/SingleApplication)

add_subdirectory(lib/bookmarks)
add_subdirectory(lib/configuration)
add_subdirectory(lib/downloads)
#add_subdirectory(lib/pluginloader)
add_subdirectory(lib/session_formats)
add_subdirectory(lib/urlfilter)

add_subdirectory(src/about)
add_subdirectory(src/webengine)
add_subdirectory(src)

add_subdirectory(doc)

install(TARGETS poi DESTINATION ${CMAKE_INSTALL_BINDIR})

feature_summary(WHAT ALL)