-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (45 loc) · 1.6 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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
#main config in cmake output log is relwithdeb info, so change optimization
string(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE}")
if (NOT CMAKE_PROJECT_NAME STREQUAL "QtBase" AND NOT CMAKE_PROJECT_NAME STREQUAL "Qt")
include(.cmake.conf)
# Store initial build type (if any is specified) to be read by
# qt_internal_set_cmake_build_type().
# See qt_internal_set_cmake_build_type() for details.
if(DEFINED CACHE{CMAKE_BUILD_TYPE})
set(__qt_internal_standalone_project_cmake_build_type_before_project_call
"${CMAKE_BUILD_TYPE}")
endif()
project(QSQLiteDriverPlugins
VERSION "${QT_REPO_MODULE_VERSION}"
DESCRIPTION "Qt6 SQL driver plugins"
HOMEPAGE_URL "https://qt.io/"
LANGUAGES CXX C ASM
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS
BuildInternals
Core
Sql
)
qt_prepare_standalone_project()
else()
qt_internal_upgrade_cmake_policies()
endif()
# Currently handled completely manually.
# TODO sqldrivers_standalone {
# _QMAKE_CACHE_ = $$shadowed($$SQLDRV_SRC_TREE)/.qmake.conf
# load(qt_configure)
# }
qt_feature_module_begin(
NO_MODULE
PUBLIC_FILE "qtsqldrivers-config.h"
PRIVATE_FILE "qtsqldrivers-config_p.h"
)
include(configure.cmake)
qt_feature_module_end(NO_MODULE)
add_subdirectory(sqlite)
if(NOT CMAKE_PROJECT_NAME STREQUAL "QtBase" AND NOT CMAKE_PROJECT_NAME STREQUAL "Qt")
qt_print_feature_summary()
endif()