Project

General

Profile

Actions

Support Request #14413

closed

Qt Cmake support within ADTF

Added by hidden almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
CC-DA/ETV
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::UI
FAQ Links:

Description

Supportanfrage

In the ADTF3 examples I see that in CMake file we have

adtf_use_qt(Widgets Gui)

Currently I am using in my CMake file

adtf_use_qt(Core Gui Network Xml)

but in my filter I still get an error when I try to include the following in the header file (see attached picture).

Lösung

the CMake Macro is provided within UI SDK of ADTF, so you can use it after a find_package.
After you have to link your target modern cmake like, this should export the targets and inlcude the header.

Something like...

# ...

find_package(ADTF COMPONENTS filtersdk ui)
adtf_use_qt(Widgets)

adtf_add_filter( #...

target_link_libraries(${EXAMPLE_TARGETNAME} PUBLIC adtf::ui Qt5::Widgets)

# ...


Something like this. Just have a look at all our qt dependend examples and their cmake files.

Files

2021-05-28_10h48_53.png (26.9 KB) 2021-05-28_10h48_53.png Error including headers hidden, 2021-05-28 10:01
Actions

Also available in: Atom PDF