generated from deepin-community/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathQCoroConfig.cmake.in
43 lines (36 loc) · 1.61 KB
/
QCoroConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if (CMAKE_VERSION VERSION_LESS 3.1.0)
message(FATAL_ERROR \"QCoro@QT_VERSION_MAJOR@ requires at least CMake version 3.1.0\")
endif()
if (NOT QCoro@QT_VERSION_MAJOR@_FIND_COMPONENTS)
set(QCoro@QT_VERSION_MAJOR@_NOT_FOUND_MESSAGE "The QCoro@QT_VERSION_MAJOR@ package requires at least one component")
set(QCoro@QT_VERSION_MAJOR@_FOUND FALSE)
return()
endif()
set(_QCoro_FIND_PARTS_REQUIRED)
if (QCoro@QT_VERSION_MAJOR@_FIND_REQUIRED)
set(_QCoro_FIND_PARTS_REQUIRED REQUIRED)
endif()
set(_QCoro_FIND_PARTS_QUIET)
if (QCoro@QT_VERSION_MAJOR@_FIND_QUIET)
set(_QCoro_FIND_PARTS_QUIET QUIET)
endif()
get_filename_component(_qcoro_install_prefix "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
set(_QCoro_NOTFOUND_MESSAGE)
foreach(module ${QCoro@QT_VERSION_MAJOR@_FIND_COMPONENTS})
find_package(QCoro@QT_VERSION_MAJOR@${module}
${_QCoro_FIND_PARTS_QUIET}
${_QCoro_FIND_PARTS_REQUIRED}
PATHS ${_qcoro_install_prefix} NO_DEFAULT_PATH
)
if (NOT QCoro@QT_VERSION_MAJOR@${module}_FOUND)
if (QCoro@QT_VERSION_MAJOR@_FIND_REQUIRED_${module})
set(_QCoro_NOTFOUND_MESSAGE "${_QCoro_NOTFOUND_MESSAGE}Failed to find QCoro component \"${module}\" config file at \"${_qcoro_install_prefix}\"\n")
elseif (NOT QCoro@QT_VERSION_MAJOR@_FIND_QUIETLY)
message(WARNING "Failed to find QCoro@QT_VERSION_MAJOR@ component \"${module}\" config file at \"${_qcoro_install_prefix}\"")
endif()
endif()
endforeach()
if (_QCoro_NOTFOUND_MESSAGE)
set(QCoro@QT_VERSION_MAJOR@_NOT_FOUND_MESSAGE "${_QCoro_NOTFOUND_MESSAGE}")
set(QCoro@QT_VERSION_MAJOR@_FOUND FALSE)
endif()