diff options
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r-- | modules/KDE4Macros.cmake | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 50ef3591..606f8a9e 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -8,7 +8,6 @@ # KDE4_GET_CUSTOM_TARGET_PROPERTY # KDE4_MOC_HEADERS # KDE4_HANDLE_AUTOMOC -# KDE4_INSTALL_LIBTOOL_FILE # KDE4_CREATE_FINAL_FILES # KDE4_ADD_KDEINIT_EXECUTABLE # KDE4_ADD_UNIT_TEST @@ -151,16 +150,22 @@ 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}") endmacro (KDE4_SET_CUSTOM_TARGET_PROPERTY) + macro (KDE4_GET_CUSTOM_TARGET_PROPERTY _var _target_name _property_name) string(REPLACE "[/ ]" "_" _dir "${CMAKE_CURRENT_SOURCE_DIR}") set(${_var} "${_kde4_${_dir}_${_target_name}_${_property_name}}") endmacro (KDE4_GET_CUSTOM_TARGET_PROPERTY) + macro (KDE4_MOC_HEADERS _target_NAME) set (_headers_to_moc) foreach (_current_FILE ${ARGN}) @@ -482,31 +487,8 @@ macro (KDE4_INSTALL_ICONS _defaultpath ) endmacro (KDE4_INSTALL_ICONS) -MACRO (KDE4_INSTALL_LIBTOOL_FILE _subdir _target) - GET_TARGET_PROPERTY(_target_location ${_target} LOCATION) - - GET_FILENAME_COMPONENT(_laname ${_target_location} NAME_WE) - GET_FILENAME_COMPONENT(_soname ${_target_location} NAME) - set(_laname ${LIBRARY_OUTPUT_PATH}/${_laname}.la) - - FILE(WRITE ${_laname} "# ${_laname} - a libtool library file, generated by cmake \n") - FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n") - FILE(APPEND ${_laname} "dlname='${_soname}'\n") - FILE(APPEND ${_laname} "# Names of this library\n") - FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n") - FILE(APPEND ${_laname} "# The name of the static archive\n") - FILE(APPEND ${_laname} "old_library=''\n") - FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n") - FILE(APPEND ${_laname} "dependency_libs=''\n") -# FILE(APPEND ${_laname} "dependency_libs='${${_target}_LIB_DEPENDS}'\n") - FILE(APPEND ${_laname} "# Version information.\ncurrent=0\nage=0\nrevision=0\n") - FILE(APPEND ${_laname} "# Is this an already installed library?\ninstalled=yes\n") - FILE(APPEND ${_laname} "# Should we warn about portability when linking against -modules?\nshouldnotlink=yes\n") - FILE(APPEND ${_laname} "# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''\n") - FILE(APPEND ${_laname} "# Directory that this library needs to be installed in:\n") - FILE(APPEND ${_laname} "libdir='${CMAKE_INSTALL_PREFIX}/${_subdir}'\n") - - INSTALL(FILES ${_laname} DESTINATION ${_subdir}) +MACRO (KDE4_INSTALL_LIBTOOL_FILE) + message(SEND_ERROR "KDE4_INSTALL_LIBTOOL_FILE() is deprecated, please remove it") ENDMACRO (KDE4_INSTALL_LIBTOOL_FILE) |