Test that the ConfigVersion.cmake files work.
Invoking find_package with a version but without the version file present results in an error. Change-Id: I29d662081ad5dbd7b2259abeec06affda97cbb6a Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
8cdcff460d
commit
d89fe1c7b3
@ -80,7 +80,7 @@ function(test_module_includes)
|
||||
set(packages_string
|
||||
"
|
||||
${packages_string}
|
||||
find_package(Qt5${_package} REQUIRED)
|
||||
find_package(Qt5${_package} 5.0.0 REQUIRED)
|
||||
"
|
||||
)
|
||||
endforeach()
|
||||
@ -90,7 +90,7 @@ function(test_module_includes)
|
||||
list(REMOVE_AT all_args 0 1)
|
||||
set(packages_string
|
||||
"${packages_string}
|
||||
find_package(Qt5${qtmodule} REQUIRED)
|
||||
find_package(Qt5${qtmodule} 5.0.0 REQUIRED)
|
||||
include_directories(\${Qt5${qtmodule}_INCLUDE_DIRS})
|
||||
add_definitions(\${Qt5${qtmodule}_DEFINITIONS})\n"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(test_concurrent_module)
|
||||
|
||||
find_package(Qt5Concurrent REQUIRED)
|
||||
find_package(Qt5Concurrent 5.0.0 REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${Qt5Concurrent_INCLUDE_DIRS}
|
||||
|
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(test_dbus_module)
|
||||
|
||||
find_package(Qt5DBus REQUIRED)
|
||||
find_package(Qt5DBus 5.0.0 REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${Qt5DBus_INCLUDE_DIRS}
|
||||
|
Loading…
Reference in New Issue
Block a user