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

project(smolbote VERSION 0.1.0 LANGUAGES CXX)

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)

# dependencies
find_package(GTest)
enable_testing()

find_package(spdlog)

find_package(Qt6 6.0.0 COMPONENTS Network Widgets SvgWidgets WebEngineCore WebEngineWidgets Concurrent REQUIRED)
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)

include(GNUInstallDirs)
install(TARGETS poi DESTINATION ${CMAKE_INSTALL_BINDIR})