diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-15 16:09:40 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-15 16:22:27 +0300 |
commit | 4fbcb478f0092ed14f17390c4bc2a334d312a6cd (patch) | |
tree | 52d530a39a914803dd75dd9e5b0565d9587d5982 /CMakeLists.txt | |
parent | pre-commit hook: Add clang-format check (diff) | |
download | rekonq-4fbcb478f0092ed14f17390c4bc2a334d312a6cd.tar.xz |
Record authors and contributors in src/data/about.html
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 25bb8a06..5d551f8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,30 +3,27 @@ # ================================================================================== cmake_minimum_required(VERSION 3.23.3) -project(rekonq VERSION 3.0.0) +project(rekonq + VERSION 3.0.0 + HOMEPAGE_URL https://bitbucket.org/celestriad/rekonq + LANGUAGES CXX) +set(CMAKE_CXX_STANDARD 20) # ================================================================================== # Information to update before to release this package. -# rekonq info -SET(REKONQ_VERSION "3.0.0") # TODO change to CMAKE_PROJECT_VERSION - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config-version.h ) - -SET(REKONQ_SITE "http://rekonq.kde.org") # TODO change to CMAKE_PROJECT_HOMEPAGE_URL - - -SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) # ================================================================================== - include(FeatureSummary) include(GNUInstallDirs) find_package(Qt6 6.3.0 COMPONENTS Core Gui Network WebEngineWidgets REQUIRED) -set(AUTO_MOC ON) -set(AUTO_UIC ON) -set(AUTO_RCC ON) +# turn on automatic moc/uic/rcc for all targets +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) #FIND_PACKAGE(KDE4 4.8.4 REQUIRED) @@ -38,6 +35,13 @@ set(AUTO_RCC ON) ADD_DEFINITIONS(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) +option(TESTING "Enable tests" OFF) +if(TESTING) + include(CTest) + enable_testing() + find_package(GTest REQUIRED) + add_definitions(-DREKONQ_TEST_EXPORT) +endif() # ================================================================================== # optional nepomuk requirements @@ -80,7 +84,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-kactivities.h.cmake ${CMAKE_CU MESSAGE(STATUS "") MESSAGE(STATUS "-----------------------------------------------------------------------") -MESSAGE(STATUS " rekonq ${REKONQ_VERSION} dependencies results <${REKONQ_SITE}>") +MESSAGE(STATUS " rekonq ${CMAKE_PROJECT_VERSION} dependencies results <${CMAKE_PROJECT_HOMEPAGE_URL}>") MESSAGE(STATUS "") feature_summary(WHAT ALL) |