blob: f75bba4d40ea992df1be361ed705d3cd24996d58 (
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
59
60
61
62
63
64
65
66
|
cmake_minimum_required(VERSION 3.10.0)
project(smolbote)
find_package(Qt5 5.11.0 COMPONENTS Core Widgets WebEngineWidgets REQUIRED)
find_package(Boost 1.66 COMPONENTS program_options REQUIRED)
find_package(ECM 1.6.0 NO_MODULE)
# add cmake/ to module path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(FeatureSummary)
include(VendorConfig)
if(CONFIG_USEPLASMA)
find_package(KF5 "5.6.0" COMPONENTS Wallet WindowSystem REQUIRED)
endif(CONFIG_USEPLASMA)
if(CONFIG_USEBREAKPAD)
find_package(Threads REQUIRED)
add_subdirectory(3rd-party/breakpad)
endif(CONFIG_USEBREAKPAD)
# Global C++ settings
set(CMAKE_CXX_STANDARD 17)
# configure a header file to pass version information
configure_file("${PROJECT_SOURCE_DIR}/src/version.h.in" "${PROJECT_BINARY_DIR}/src/version.h")
add_subdirectory(3rd-party/SingleApplication)
add_subdirectory(lib/about)
add_subdirectory(lib/addressbar)
add_subdirectory(lib/bookmarks)
add_subdirectory(lib/downloads)
add_subdirectory(lib/configuration)
add_subdirectory(lib/web)
add_subdirectory(lib/urlfilter)
add_subdirectory(plugins/ProfileEditor)
add_subdirectory(plugins/ConfigurationEditor)
add_subdirectory(src)
add_subdirectory(doc)
#if(CONFIG_TESTS)
enable_testing()
find_package(Qt5 COMPONENTS Test REQUIRED)
add_subdirectory(test)
#endif(CONFIG_TESTS)
# Summarize
message(STATUS "=== Configuration summary ===")
message(STATUS "Building ${CONFIG_POI_NAME} (${CONFIG_POI_EXE}) ${poi_Build}")
message(STATUS "Platform: ${CMAKE_SYSTEM_NAME}")
message(STATUS "Generator: ${CMAKE_GENERATOR}")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "CXX compiler: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "CXX flags: ${CMAKE_CXX_FLAGS}")
message(STATUS "CXX flags dbg: ${CMAKE_CXX_FLAGS_DEBUG}")
message(STATUS "CXX flags rel: ${CMAKE_CXX_FLAGS_RELEASE}")
message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Install bindir ${CONFIG_INSTALL_BINDIR}")
message(STATUS "Install libdir ${CONFIG_INSTALL_LIBDIR}")
message(STATUS "Install plugins ${CONFIG_INSTALL_PLUGINDIR}")
feature_summary(WHAT ALL)
|