calamares/src/modules/locale/CMakeLists.txt

46 lines
1.1 KiB
CMake
Raw Normal View History

# 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.
option( DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF )
if( DEBUG_TIMEZONES )
add_definitions( -DDEBUG_TIMEZONES )
endif()
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
calamares_add_plugin( locale
TYPE viewmodule
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
${geoip_src}
2014-11-25 17:40:38 +01:00
LCLocaleDialog.cpp
LocaleConfiguration.cpp
LocalePage.cpp
LocaleViewStep.cpp
2014-08-01 16:29:19 +02:00
SetTimezoneJob.cpp
timezonewidget/timezonewidget.cpp
timezonewidget/localeglobal.cpp
UI
RESOURCES
locale.qrc
2016-12-07 16:37:29 +01:00
LINK_PRIVATE_LIBRARIES
calamaresui
2016-12-07 16:37:29 +01:00
Qt5::Network
${geoip_libs}
2017-09-13 18:49:43 +02:00
${YAMLCPP_LIBRARY}
SHARED_LIB
)
if( ECM_FOUND AND BUILD_TESTING )
ecm_add_test(
Tests.cpp
LocaleConfiguration.cpp
TEST_NAME
localetest
LINK_LIBRARIES
calamares
Qt5::Test
)
2019-04-18 12:01:41 +02:00
calamares_automoc( localetest )
endif()