calamares/src/modules/localeq/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
CMake
Raw Normal View History

# === This file is part of Calamares - <https://calamares.io> ===
#
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
#
2022-02-08 16:18:47 +01:00
if(NOT WITH_QML)
calamares_skip_module( "localeq (QML is not supported in this build)" )
return()
endif()
# When debugging the timezone widget, add this debugging definition
# to have a debugging-friendly timezone widget, debug logging,
# and no intrusive timezone-setting while clicking around.
2022-02-08 16:18:47 +01:00
option(DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF)
if(DEBUG_TIMEZONES)
add_definitions(-DDEBUG_TIMEZONES)
endif()
find_package(Qt5Location CONFIG)
2022-02-08 16:18:47 +01:00
set_package_properties(Qt5Location PROPERTIES DESCRIPTION "Used for rendering the map" TYPE RUNTIME)
find_package(Qt5Positioning CONFIG)
2022-02-08 16:18:47 +01:00
set_package_properties(Qt5Positioning PROPERTIES DESCRIPTION "Used for GeoLocation and GeoCoding" TYPE RUNTIME)
# Because we're sharing sources with the regular locale module
2022-02-08 16:18:47 +01:00
set(_locale ${CMAKE_CURRENT_SOURCE_DIR}/../locale)
2022-02-08 16:18:47 +01:00
include_directories(${_locale})
2022-02-08 16:18:47 +01:00
calamares_add_plugin(localeq
TYPE viewmodule
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
LocaleQmlViewStep.cpp
${_locale}/LocaleConfiguration.cpp
${_locale}/Config.cpp
${_locale}/SetTimezoneJob.cpp
RESOURCES
localeq.qrc
LINK_PRIVATE_LIBRARIES
Qt5::Network
SHARED_LIB
)