diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2020-12-17 19:19:18 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2020-12-21 14:26:23 +0100 |
commit | 7059487ccba77d6d05bc985d5cd9b49c90d8042c (patch) | |
tree | bfc957a2447ca71aa213da5bf10e887b64a0b536 /config.tests | |
parent | 5f84f4e90d45061200873a768fee81eb8e475f98 (diff) |
Update CMake scripts in QtConnectivity
Recreated all CMake files in QtConnectivity using
run_pro2cmake.py . --only-existing -- --api-version 3
Furthermore, port bttestui to CMake.
Change-Id: Idb55f1b4c1cff30d7824a42e3ee6923c39e698df
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/bluez/CMakeLists.txt | 17 | ||||
-rw-r--r-- | config.tests/bluez_le/CMakeLists.txt | 17 | ||||
-rw-r--r-- | config.tests/linux_crypto_api/CMakeLists.txt | 17 | ||||
-rw-r--r-- | config.tests/winrt_bt/CMakeLists.txt | 26 | ||||
-rw-r--r-- | config.tests/winrt_btle_no_pairing/CMakeLists.txt | 26 |
5 files changed, 86 insertions, 17 deletions
diff --git a/config.tests/bluez/CMakeLists.txt b/config.tests/bluez/CMakeLists.txt index 7b6ab85b..86e1473d 100644 --- a/config.tests/bluez/CMakeLists.txt +++ b/config.tests/bluez/CMakeLists.txt @@ -1,7 +1,22 @@ # Generated from bluez.pro. cmake_minimum_required(VERSION 3.14.0) -project(config_test_bluez LANGUAGES CXX) +project(config_test_bluez LANGUAGES C CXX) + +foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES}) + find_package(${p}) +endforeach() + +if(QT_CONFIG_COMPILE_TEST_LIBRARIES) + link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES}) +endif() +if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS) + foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS}) + if(TARGET ${lib}) + link_libraries(${lib}) + endif() + endforeach() +endif() add_executable(${PROJECT_NAME} main.cpp diff --git a/config.tests/bluez_le/CMakeLists.txt b/config.tests/bluez_le/CMakeLists.txt index 28c13451..88fe9d8f 100644 --- a/config.tests/bluez_le/CMakeLists.txt +++ b/config.tests/bluez_le/CMakeLists.txt @@ -1,7 +1,22 @@ # Generated from bluez_le.pro. cmake_minimum_required(VERSION 3.14.0) -project(config_test_bluez_le LANGUAGES CXX) +project(config_test_bluez_le LANGUAGES C CXX) + +foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES}) + find_package(${p}) +endforeach() + +if(QT_CONFIG_COMPILE_TEST_LIBRARIES) + link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES}) +endif() +if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS) + foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS}) + if(TARGET ${lib}) + link_libraries(${lib}) + endif() + endforeach() +endif() add_executable(${PROJECT_NAME} main.cpp diff --git a/config.tests/linux_crypto_api/CMakeLists.txt b/config.tests/linux_crypto_api/CMakeLists.txt index 6474aecb..58c6c381 100644 --- a/config.tests/linux_crypto_api/CMakeLists.txt +++ b/config.tests/linux_crypto_api/CMakeLists.txt @@ -1,7 +1,22 @@ # Generated from linux_crypto_api.pro. cmake_minimum_required(VERSION 3.14.0) -project(config_test_linux_crypto_api LANGUAGES CXX) +project(config_test_linux_crypto_api LANGUAGES C CXX) + +foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES}) + find_package(${p}) +endforeach() + +if(QT_CONFIG_COMPILE_TEST_LIBRARIES) + link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES}) +endif() +if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS) + foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS}) + if(TARGET ${lib}) + link_libraries(${lib}) + endif() + endforeach() +endif() add_executable(${PROJECT_NAME} main.cpp diff --git a/config.tests/winrt_bt/CMakeLists.txt b/config.tests/winrt_bt/CMakeLists.txt index c9484aa9..a03541aa 100644 --- a/config.tests/winrt_bt/CMakeLists.txt +++ b/config.tests/winrt_bt/CMakeLists.txt @@ -1,14 +1,26 @@ # Generated from winrt.pro. cmake_minimum_required(VERSION 3.14.0) -project(config_test_winrt LANGUAGES CXX) +project(config_test_winrt LANGUAGES C CXX) + +foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES}) + find_package(${p}) +endforeach() + +if(QT_CONFIG_COMPILE_TEST_LIBRARIES) + link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES}) +endif() +if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS) + foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS}) + if(TARGET ${lib}) + link_libraries(${lib}) + endif() + endforeach() +endif() add_executable(${PROJECT_NAME} main.cpp ) - -if(NOT WINRT) - target_link_libraries(${PROJECT_NAME} PUBLIC - runtimeobject.lib - ) -endif() +target_link_libraries(${PROJECT_NAME} PUBLIC + runtimeobject.lib +) diff --git a/config.tests/winrt_btle_no_pairing/CMakeLists.txt b/config.tests/winrt_btle_no_pairing/CMakeLists.txt index c9484aa9..a03541aa 100644 --- a/config.tests/winrt_btle_no_pairing/CMakeLists.txt +++ b/config.tests/winrt_btle_no_pairing/CMakeLists.txt @@ -1,14 +1,26 @@ # Generated from winrt.pro. cmake_minimum_required(VERSION 3.14.0) -project(config_test_winrt LANGUAGES CXX) +project(config_test_winrt LANGUAGES C CXX) + +foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES}) + find_package(${p}) +endforeach() + +if(QT_CONFIG_COMPILE_TEST_LIBRARIES) + link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES}) +endif() +if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS) + foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS}) + if(TARGET ${lib}) + link_libraries(${lib}) + endif() + endforeach() +endif() add_executable(${PROJECT_NAME} main.cpp ) - -if(NOT WINRT) - target_link_libraries(${PROJECT_NAME} PUBLIC - runtimeobject.lib - ) -endif() +target_link_libraries(${PROJECT_NAME} PUBLIC + runtimeobject.lib +) |