Warning, /office/alkimia/cmake/modules/FindQt4.cmake is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de
0002 #
0003 # SPDX-License-Identifier: BSD-3-Clause
0004
0005 # Qt > 5 compatibility layer for Qt4
0006 # - provides same component names as Qt >= 5
0007
0008 # prepend Qt prefix
0009 list(TRANSFORM Qt4_FIND_COMPONENTS PREPEND Qt)
0010 list(PREPEND CMAKE_MODULE_PATH ${CMAKE_ROOT}/Modules)
0011 include(FindQt4)
0012
0013 if(Qt4_FOUND)
0014 set(Qt4_COMPONENTS
0015 Core
0016 Gui
0017 DBus
0018 Declarative
0019 # not available on mingw
0020 #Designer
0021 #DesignerComponents
0022 Help
0023 Multimedia
0024 Network
0025 OpenGL
0026 Script
0027 ScriptTools
0028 Sql
0029 Svg
0030 Test
0031 #UiTools
0032 WebKit
0033 Xml
0034 XmlPatterns
0035 )
0036
0037 #QtAssistant
0038 #QtAssistantClient
0039 #QAxContainer
0040 #QAxServer
0041 #Qt3Support
0042 #QtMotif
0043 #QtNsPLugin
0044
0045 # add targets Qt4::<component>
0046 foreach(COMPONENT ${Qt4_COMPONENTS})
0047 if(TARGET Qt4::Qt${COMPONENT})
0048 add_library(Qt4::${COMPONENT} ALIAS Qt4::Qt${COMPONENT})
0049 endif()
0050 endforeach()
0051
0052 # wrapper for Qt > 4 targets
0053 add_library(Qt4::Qml ALIAS Qt4::QtDeclarative)
0054 add_library(Qt4::WebKitWidgets ALIAS Qt4::QtWebKit)
0055 add_library(Qt4::Widgets ALIAS Qt4::QtGui)
0056
0057 set(QT4_INSTALL_CMAKECONFIG_FILES ${CMAKE_CURRENT_LIST_DIR}/FindQt4.cmake)
0058 endif()