From 666ad879094791bf8d2626b4cc66638a2af8e23a Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Tue, 2 Mar 2021 09:50:15 +0100 Subject: cmake: Add configure test for DLT and fix building GeniviExtras Task-number: AUTOSUITE-1633 Change-Id: Icf2117f9772dccff871c7fa9307479c2488f3965 Reviewed-by: Robert Griebl --- examples/CMakeLists.txt | 2 +- examples/geniviextras/qdlt/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 5454d68..7e9779d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -11,7 +11,7 @@ endif() if(TARGET Qt::Gui AND TARGET Qt::IviMedia) add_subdirectory(ivimedia) endif() -if(TARGET geniviextras) +if(TARGET Qt::GeniviExtras) add_subdirectory(geniviextras) endif() diff --git a/examples/geniviextras/qdlt/CMakeLists.txt b/examples/geniviextras/qdlt/CMakeLists.txt index d5874e6..8036fb1 100644 --- a/examples/geniviextras/qdlt/CMakeLists.txt +++ b/examples/geniviextras/qdlt/CMakeLists.txt @@ -16,6 +16,7 @@ endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/geniviextras/qdlt") find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS GeniviExtras) qt_add_executable(qdlt loggingcategories.cpp loggingcategories.h @@ -27,7 +28,7 @@ set_target_properties(qdlt PROPERTIES ) target_link_libraries(qdlt PUBLIC Qt::Core - geniviextras + Qt::GeniviExtras ) install(TARGETS qdlt -- cgit v1.2.1