Actions
Support Request #14413
closedQt Cmake support within ADTF
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
Updated by hidden almost 3 years ago
- Status changed from New to In Progress
- Topic set to ADTF::ConanCMakeMisc
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.
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