@ -57,6 +57,7 @@ find_package( PolkitQt5-1 REQUIRED )
option ( WITH_PYTHON "Enable Python modules support." ON )
option ( WITH_PYTHON "Enable Python modules support." ON )
option ( WITH_CRASHREPORTER "Build with CrashReporter" ON )
option ( WITH_CRASHREPORTER "Build with CrashReporter" ON )
option ( INSTALL_CONFIG "Install configuration files" ON )
if ( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libcrashreporter-qt/CMakeLists.txt" )
if ( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libcrashreporter-qt/CMakeLists.txt" )
message ( STATUS "Build of crashreporter disabled." )
message ( STATUS "Build of crashreporter disabled." )
@ -170,6 +171,10 @@ if ( NOT WITH_PYTHON )
message ( "-- WARNING: Building Calamares without Python support. Python modules will not work.\n" )
message ( "-- WARNING: Building Calamares without Python support. Python modules will not work.\n" )
endif ( )
endif ( )
if ( NOT INSTALL_CONFIG )
message ( "-- WARNING: Configuration files will not be installed.\n" )
endif ( )
# 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
# 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" )
set ( CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/Calamares" CACHE PATH "Installation directory for CMake files" )
set ( CMAKE_INSTALL_FULL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CMAKEDIR}" )
set ( CMAKE_INSTALL_FULL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CMAKEDIR}" )
@ -211,12 +216,14 @@ install(
" $ { C M A K E _ I N S T A L L _ C M A K E D I R } "
" $ { C M A K E _ I N S T A L L _ C M A K E D I R } "
)
)
install (
if ( INSTALL_CONFIG )
F I L E S
install (
s e t t i n g s . c o n f
F I L E S
D E S T I N A T I O N
s e t t i n g s . c o n f
s h a r e / c a l a m a r e s
D E S T I N A T I O N
)
s h a r e / c a l a m a r e s
)
endif ( )
install (
install (
F I L E S
F I L E S