Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | include(CheckTypeSize) | 42 | include(CheckTypeSize) | ||
43 | 43 | | |||
44 | if(WIN32) | 44 | if(WIN32) | ||
45 | set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES}) | 45 | set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES}) | ||
46 | set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES}) | 46 | set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES}) | ||
47 | endif(WIN32) | 47 | endif(WIN32) | ||
48 | 48 | | |||
49 | option(SAMBA_INSTALL "Offer to install Samba for file sharing with PackageKit if it is not already installed, use -DSAMBA_INSTALL=off to disable, use -DSAMBA_PACKAGE_NAME= to set package name." ON) | 49 | option(SAMBA_INSTALL "Offer to install Samba for file sharing with PackageKit if it is not already installed, use -DSAMBA_INSTALL=off to disable, use -DSAMBA_PACKAGE_NAME= to set package name." ON) | ||
50 | set(SAMBA_PACKAGE_NAME \"samba\" CACHE STRING "Name of distribution package to install to get a functional samba stack.") | 50 | set(SAMBA_PACKAGE_NAME \"samba\" CACHE STRING "Single package or comma-separated list of packages needed for a functional Samba stack on this distribution.") | ||
51 | 51 | | |||
52 | if(SAMBA_INSTALL AND PackageKitQt5_FOUND) | 52 | if(SAMBA_INSTALL AND PackageKitQt5_FOUND) | ||
53 | add_definitions(-DSAMBA_INSTALL) | 53 | add_definitions(-DSAMBA_INSTALL) | ||
54 | add_definitions(-DSAMBA_PACKAGE_NAME=${SAMBA_PACKAGE_NAME}) | 54 | add_definitions(-DSAMBA_PACKAGE_NAME=${SAMBA_PACKAGE_NAME}) | ||
55 | else() | 55 | else() | ||
56 | set(SAMBA_INSTALL false) | 56 | set(SAMBA_INSTALL false) | ||
57 | endif() | 57 | endif() | ||
58 | add_feature_info("Samba Installation" SAMBA_INSTALL "Automatic installation of '${SAMBA_PACKAGE_NAME}' using PackageKit.") | 58 | add_feature_info("Samba Installation" SAMBA_INSTALL "Automatic installation of '${SAMBA_PACKAGE_NAME}' using PackageKit.") | ||
59 | 59 | | |||
60 | # KI18N Translation Domain for this library | 60 | # KI18N Translation Domain for this library | ||
61 | add_definitions(-DTRANSLATION_DOMAIN=\"kfileshare\") | 61 | add_definitions(-DTRANSLATION_DOMAIN=\"kfileshare\") | ||
62 | 62 | | |||
63 | add_subdirectory(samba) | 63 | add_subdirectory(samba) | ||
64 | 64 | | |||
65 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 65 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |