@ -37,6 +37,7 @@ cmake_minimum_required( VERSION 3.2 )
# # # O P T I O N S
#
option ( INSTALL_CONFIG "Install configuration files" ON )
option ( INSTALL_POLKIT "Install Polkit configuration" ON )
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)." ON )
@ -197,7 +198,18 @@ include( CMakeColors )
#
find_package ( Qt5 ${ QT_VERSION } CONFIG REQUIRED Core Gui Widgets LinguistTools Svg Quick QuickWidgets )
find_package ( YAMLCPP ${ YAMLCPP_VERSION } REQUIRED )
find_package ( PolkitQt5-1 REQUIRED )
if ( INSTALL_POLKIT )
find_package ( PolkitQt5-1 REQUIRED )
else ( )
# F i n d i t a n y w a y , f o r d e p e n d e n c i e s - r e p o r t i n g
find_package ( PolkitQt5-1 )
endif ( )
set_package_properties (
P o l k i t Q t 5 - 1 P R O P E R T I E S
D E S C R I P T I O N " Q t 5 s u p p o r t f o r P o l k i t "
U R L " h t t p s : / / c g i t . k d e . o r g / p o l k i t - q t - 1 . g i t "
P U R P O S E " P o l k i t Q t 5 - 1 h e l p s w i t h i n s t a l l i n g P o l k i t c o n f i g u r a t i o n "
)
# F i n d E C M o n c e , a n d a d d i t t o t h e m o d u l e s e a r c h p a t h ; C a l a m a r e s
# m o d u l e s t h a t n e e d E C M c a n d o
@ -454,12 +466,14 @@ if( INSTALL_CONFIG )
)
endif ( )
install (
F I L E S
c o m . g i t h u b . c a l a m a r e s . c a l a m a r e s . p o l i c y
D E S T I N A T I O N
" $ { P O L K I T Q T - 1 _ P O L I C Y _ F I L E S _ I N S T A L L _ D I R } "
)
if ( INSTALL_POLKIT )
install (
F I L E S
c o m . g i t h u b . c a l a m a r e s . c a l a m a r e s . p o l i c y
D E S T I N A T I O N
" $ { P O L K I T Q T - 1 _ P O L I C Y _ F I L E S _ I N S T A L L _ D I R } "
)
endif ( )
install (
F I L E S