Warning, /multimedia/kmplayer/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 2.8.12) 0002 project(kmplayer) 0003 0004 cmake_policy(VERSION 2.6) 0005 0006 SET(KMPLAYER_MAJOR_VERSION "0") 0007 SET(KMPLAYER_MINOR_VERSION "12") 0008 SET(KMPLAYER_PATCH_VERSION "0b") 0009 0010 SET(KMPLAYER_VERSION_STRING 0011 "${KMPLAYER_MAJOR_VERSION}.${KMPLAYER_MINOR_VERSION}.${KMPLAYER_PATCH_VERSION}") 0012 0013 find_package(ECM 1.2.0 REQUIRED NO_MODULE) 0014 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) 0015 0016 include(KDEInstallDirs) 0017 include(KDECMakeSettings) 0018 include(KDECompilerSettings NO_POLICY_SCOPE) 0019 include(ECMInstallIcons) 0020 #include(ECMSetupVersion) 0021 include(FeatureSummary) 0022 Include(CheckIncludeFiles) 0023 include(ECMSetupVersion) 0024 include(FindXCB) 0025 0026 ecm_setup_version(${KMPLAYER_VERSION_STRING} VARIABLE_PREFIX KMPLAYERPRIVATE 0027 SOVERSION ${KMPLAYER_MAJOR_VERSION} 0028 ) 0029 find_package(Qt5 REQUIRED COMPONENTS Core DBus Widgets Svg X11Extras) 0030 find_package(KF5 REQUIRED COMPONENTS Config CoreAddons Init I18n KDELibs4Support KIO MediaPlayer Parts WidgetsAddons) 0031 find_package(KF5DocTools) 0032 find_package(X11 REQUIRED) 0033 find_package(Phonon4Qt5 REQUIRED NO_MODULE) 0034 0035 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) 0036 0037 if(NOT WIN32) 0038 OPTION(KMPLAYER_BUILT_WITH_CAIRO "Enable Cairo support" ON) 0039 OPTION(KMPLAYER_BUILT_WITH_NPP "Build NPP player" ON) 0040 OPTION(KMPLAYER_BUILT_WITH_EXPAT "Use expat XML parser" OFF) 0041 INCLUDE(UsePkgConfig) 0042 0043 if (KMPLAYER_BUILT_WITH_CAIRO) 0044 0045 PKGCONFIG(cairo CAIROIncDir CAIROLinkDir CAIROLinkFlags CAIROCflags) 0046 0047 if (CAIROCflags) 0048 set(KMPLAYER_WITH_CAIRO 1) 0049 endif (CAIROCflags) 0050 endif (KMPLAYER_BUILT_WITH_CAIRO) 0051 0052 if (KMPLAYER_BUILT_WITH_NPP) 0053 PKGCONFIG(dbus-glib-1 GLibDBusIncDir GLibDBusLinkDir GLibDBusLinkFlags GLibDBusCflags) 0054 PKGCONFIG(gmodule-2.0 GModuleIncDir GModuleLinkDir GModuleLinkFlags GModuleCflags) 0055 0056 if (GLibDBusCflags) 0057 set(KMPLAYER_WITH_GDBUS 1) 0058 PKGCONFIG(gtk+-x11-2.0 GTKIncDir GTKLinkDir GTKLinkFlags GTKCflags) 0059 PKGCONFIG(gthread-2.0 GThreadIncDir GThreadLinkDir GThreadLinkFlags GThreadCflags) 0060 if (GTKCflags) 0061 set(KMPLAYER_WITH_NPP 1) 0062 endif (GTKCflags) 0063 endif (GLibDBusCflags) 0064 endif (KMPLAYER_BUILT_WITH_NPP) 0065 0066 if (KMPLAYER_BUILT_WITH_EXPAT) 0067 INCLUDE(FindEXPAT) 0068 if (EXPAT_FOUND) 0069 set(KMPLAYER_WITH_EXPAT 1) 0070 else (EXPAT_FOUND) 0071 MESSAGE(Expat found) 0072 endif (EXPAT_FOUND) 0073 endif (KMPLAYER_BUILT_WITH_EXPAT) 0074 0075 endif(NOT WIN32) 0076 0077 check_include_files(stdint.h HAVE_STDINT_H) 0078 0079 configure_file (config-kmplayer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmplayer.h ) 0080 0081 add_subdirectory(src) 0082 add_subdirectory(icons) 0083 if (KF5DocTools_FOUND) 0084 add_subdirectory(doc) 0085 kdoctools_install(po) 0086 endif() 0087 add_subdirectory(data) 0088 0089 ki18n_install(po)