summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-01-15 17:44:04 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2021-01-27 09:48:42 +0100
commitff64b8ef2dfd1c04bf2f950a76526c907911aeb1 (patch)
tree56d40f805f9127d17673dcf63969378c07fa4d00 /config.tests
parent867b4d428f78fffe7fefeffaa2f819c9f345da26 (diff)
Port to CMake
Task-number: QTBUG-90399 Change-Id: I0521231e7d61809f38c44215b5cd923b292b9e02 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/socketcan/CMakeLists.txt21
-rw-r--r--config.tests/socketcan/socketcan.pro2
-rw-r--r--config.tests/socketcan_fd/CMakeLists.txt21
-rw-r--r--config.tests/socketcan_fd/socketcan_fd.pro2
4 files changed, 42 insertions, 4 deletions
diff --git a/config.tests/socketcan/CMakeLists.txt b/config.tests/socketcan/CMakeLists.txt
new file mode 100644
index 0000000..7dce09a
--- /dev/null
+++ b/config.tests/socketcan/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 3.14.0)
+project(config_test_socketcan 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/socketcan/socketcan.pro b/config.tests/socketcan/socketcan.pro
deleted file mode 100644
index 3f6c643..0000000
--- a/config.tests/socketcan/socketcan.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES += main.cpp
-
diff --git a/config.tests/socketcan_fd/CMakeLists.txt b/config.tests/socketcan_fd/CMakeLists.txt
new file mode 100644
index 0000000..210fefc
--- /dev/null
+++ b/config.tests/socketcan_fd/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 3.14.0)
+project(config_test_socketcan_fd 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/socketcan_fd/socketcan_fd.pro b/config.tests/socketcan_fd/socketcan_fd.pro
deleted file mode 100644
index 3f6c643..0000000
--- a/config.tests/socketcan_fd/socketcan_fd.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-SOURCES += main.cpp
-