-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
279 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-FileCopyrightText: 2023 Linus Jahn <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
@PACKAGE_INIT@ | ||
|
||
# Detect Qt version | ||
if(NOT DEFINED QT_VERSION_MAJOR) | ||
if(TARGET Qt6::Core) | ||
set(QT_VERSION_MAJOR 6) | ||
elseif(TARGET Qt5::Core) | ||
set(QT_VERSION_MAJOR 5) | ||
else() | ||
# default to Qt 6 | ||
set(QT_VERSION_MAJOR 6) | ||
endif() | ||
endif() | ||
|
||
set(_QXmpp_FIND_PARTS_REQUIRED) | ||
if(QXmpp_FIND_REQUIRED) | ||
set(_QXmpp_FIND_PARTS_REQUIRED REQUIRED) | ||
endif() | ||
set(_QXmpp_FIND_PARTS_QUIET) | ||
if(QXmpp_FIND_QUIETLY) | ||
set(_QXmpp_FIND_PARTS_QUIET QUIET) | ||
endif() | ||
|
||
# Pass through arguments to QXmppQt5/6 | ||
include(CMakeFindDependencyMacro) | ||
find_package(QXmppQt${QT_VERSION_MAJOR} | ||
${QXmpp_FIND_VERSION} | ||
${_QXmpp_FIND_PARTS_REQUIRED} | ||
${_QXmpp_FIND_PARTS_QUIET} | ||
COMPONENTS ${QXmpp_FIND_COMPONENTS} | ||
) | ||
|
||
set(QXmpp_FOUND ${QXmppQt${QT_VERSION_MAJOR}_FOUND}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2023 Linus Jahn <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
set(PACKAGE_VERSION "") | ||
# Allow all requested versions here, the actual check is going to be done in QXmppQt5/6. | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.