@ -54,6 +54,7 @@ option( BUILD_TESTING "Build the testing tree." ON )
option ( WITH_PYTHON "Enable Python modules API (requires Boost.Python)." ON )
option ( WITH_PYTHONQT "Enable next generation Python modules API (experimental, requires PythonQt)." OFF )
option ( WITH_KF5Crash "Enable crash reporting with KCrash." ON )
option ( WITH_KF5DBus "Use DBus service for unique-application." ON )
# P o s s i b l e d e b u g g i n g f l a g s a r e :
# - D E B U G _ T I M E Z O N E S d r a w s l a t i t u d e a n d l o n g i t u d e l i n e s o n t h e t i m e z o n e
@ -290,7 +291,7 @@ if( ECM_FOUND )
include ( KDEInstallDirs )
endif ( )
find_package ( KF5 QUIET COMPONENTS CoreAddons Crash )
find_package ( KF5 QUIET COMPONENTS CoreAddons Crash DBusAddons )
set_package_properties (
K F 5 : : C o r e A d d o n s P R O P E R T I E S
T Y P E R E Q U I R E D
@ -299,8 +300,17 @@ set_package_properties(
P U R P O S E " A b o u t C a l a m a r e s "
)
if ( NOT KF5Crash_FOUND )
if ( WITH_KF5Crash )
message ( WARNING "WITH_KF5Crash is set, but KF5::Crash is not available." )
endif ( )
set ( WITH_KF5Crash OFF )
endif ( )
if ( NOT KF5DBusAddons_FOUND )
if ( WITH_KF5DBus )
message ( WARNING "WITH_KF5DBus is set, but KF5::DBusAddons is not available." )
endif ( )
set ( WITH_KF5DBus OFF )
endif ( )
if ( BUILD_TESTING )
enable_testing ( )
@ -520,6 +530,7 @@ add_feature_info(Python ${WITH_PYTHON} "Python job modules")
add_feature_info ( PythonQt ${ WITH_PYTHONQT } "Python view modules" )
add_feature_info ( Config ${ INSTALL_CONFIG } "Install Calamares configuration" )
add_feature_info ( KCrash ${ WITH_KF5Crash } "Crash dumps via KCrash" )
add_feature_info ( KDBusAddons ${ WITH_KF5DBus } "Unique-application via DBus" )
# A d d a l l t a r g e t s t o t h e b u i l d - t r e e e x p o r t s e t
set ( CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/Calamares" CACHE PATH "Installation directory for CMake files" )