Warning, /maui/maui-libdavclient/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.10) 0002 enable_testing() 0003 0004 file(STRINGS ./VERSION PROJECT_VERSION) 0005 0006 project( 0007 davclient 0008 VERSION ${PROJECT_VERSION} 0009 DESCRIPTION "A DAV Client library to connect to DAV Servers(CardDAV, CalDAV, WebDAV) built with QT" 0010 ) 0011 0012 # Set Flags 0013 set(CMAKE_INCLUDE_CURRENT_DIR ON) 0014 set(CMAKE_AUTOMOC ON) 0015 set(CMAKE_CXX_STANDARD 11) 0016 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0017 set(CMAKE_INSTALL_PREFIX /usr) 0018 ### 0019 0020 # Miscellaneous 0021 include(FeatureSummary) 0022 0023 add_definitions(-DPROJECT_NAME="${PROJECT_NAME}") 0024 add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}") 0025 ### 0026 0027 # Include SubDirectories 0028 add_subdirectory(lib) 0029 add_subdirectory(lib/tests) 0030 ### 0031 0032 # CPack Configuration 0033 include(InstallRequiredSystemLibraries) 0034 0035 set(CPACK_GENERATOR "DEB") 0036 set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) 0037 set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Anupam Basak") 0038 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A DAV Client library to connect to DAV Servers(CardDAV, CalDAV, WebDAV) built with QT") 0039 set(CPACK_PACKAGE_VENDOR "Anupam Basak") 0040 set(CPACK_PACKAGE_CONTACT "Anupam Basak <anupam.basak27@gmail.com>") 0041 #set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt") 0042 #set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt") 0043 set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) 0044 set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) 0045 set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) 0046 set(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}") 0047 set(CPACK_SOURCE_STRIP_FILES "") 0048 0049 include(CPack) 0050 ### 0051 0052 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)