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 #1

Updated by hidden almost 3 years ago

  • Status changed from New to In Progress
  • Topic set to ADTF::ConanCMakeMisc
Actions #4

Updated by hidden almost 3 years ago

  • Status changed from In Progress to Customer Feedback Required
  • Topic changed from ADTF::ConanCMakeMisc to ADTF::UI

Hi Ali,

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.
Actions #5

Updated by hidden almost 3 years ago

thanks, it solves the issue

Actions #6

Updated by hidden almost 3 years ago

  • Project changed from 5 to Public Support
  • Subject changed from ADTF3: QT support in CMAKE to Qt Cmake support within ADTF
  • Description updated (diff)
  • Status changed from Customer Feedback Required to To Be Closed
  • Resolution set to Solved Issue
Actions #7

Updated by hidden over 2 years ago

  • Status changed from To Be Closed to Closed
Actions

Also available in: Atom PDF