aboutsummaryrefslogtreecommitdiff
path: root/modules/KDE4Macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r--modules/KDE4Macros.cmake37
1 files changed, 9 insertions, 28 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 419205be..492cf8b3 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -23,7 +23,6 @@
# KDE4_INSTALL_HANDBOOK
# KDE4_CREATE_PO_FILES
# KDE4_INSTALL_PO_FILES
-# KDE4_INSTALL_XDG_MIMETYPES
# Copyright (c) 2006, 2007, Alexander Neundorf, <neundorf@kde.org>
# Copyright (c) 2006, 2007, Laurent Montel, <montel@kde.org>
@@ -151,10 +150,6 @@ macro (KDE4_ADD_UI3_FILES _sources )
endforeach (_current_FILE)
endmacro (KDE4_ADD_UI3_FILES)
-macro (KDE4_AUTOMOC)
- message(SEND_ERROR "KDE4_AUTOMOC() is not required anymore for automoc, please remove it")
-endmacro (KDE4_AUTOMOC)
-
macro (KDE4_SET_CUSTOM_TARGET_PROPERTY _target_name _property_name _property)
string(REPLACE "[/ ]" "_" _dir "${CMAKE_CURRENT_SOURCE_DIR}")
set(_kde4_${_dir}_${_target_name}_${_property_name} "${_property}")
@@ -420,11 +415,6 @@ macro (KDE4_INSTALL_ICONS _defaultpath )
endmacro (KDE4_INSTALL_ICONS)
-MACRO (KDE4_INSTALL_LIBTOOL_FILE)
- message(SEND_ERROR "KDE4_INSTALL_LIBTOOL_FILE() is deprecated, please remove it")
-ENDMACRO (KDE4_INSTALL_LIBTOOL_FILE)
-
-
# For all C++ sources a big source file which includes all the files
# is created.
# This is not done for the C sources, they are just gathered in a separate list
@@ -863,25 +853,16 @@ macro(KDE4_CREATE_EXPORTS_HEADER _outputFile _libName)
endmacro(KDE4_CREATE_EXPORTS_HEADER _outputFile _libName)
-macro (INSTALL_XDG_MIMETYPES _path )
-
- foreach (_current_FILE ${ARGN})
-
- install(FILES ${_current_FILE} DESTINATION ${_path}/share/mime/packages)
-
- install(CODE "
-set(DESTDIR_VALUE \"\$ENV{DESTDIR}\")
-if (NOT DESTDIR_VALUE)
- exec_program(update-mime-database ARGS ${_path}/share/mime/)
-endif (NOT DESTDIR_VALUE)
-")
-
- endforeach (_current_FILE)
+macro (KDE4_INSTALL_XDG_MIMETYPES)
+ message(SEND_ERROR "KDE4_INSTALL_XDG_MIMETYPES() is deprecated, see kdelibs/mimetypes/CMakeLists.txt for an example")
+endmacro (KDE4_INSTALL_XDG_MIMETYPES)
-endmacro (INSTALL_XDG_MIMETYPES)
+macro (KDE4_AUTOMOC)
+ message(SEND_ERROR "KDE4_AUTOMOC() is not required anymore for automoc, please remove it")
+endmacro (KDE4_AUTOMOC)
-macro (KDE4_INSTALL_XDG_MIMETYPES)
+MACRO (KDE4_INSTALL_LIBTOOL_FILE)
+ message(SEND_ERROR "KDE4_INSTALL_LIBTOOL_FILE() is deprecated, please remove it")
+ENDMACRO (KDE4_INSTALL_LIBTOOL_FILE)
- install_xdg_mimetypes(${CMAKE_INSTALL_PREFIX} ${ARGN})
-endmacro (KDE4_INSTALL_XDG_MIMETYPES)