TetraIF/CoPrtCnv: link Qt Core to expose Qt includes (Qt6 when available)\n\nAdd Qt6::Core/Qt5::Core to CoPrtCnv target link libraries so Qt headers (QString, QJsonDocument, etc.) are found during migration builds.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
a33d44382b
commit
6603c6563f
1 file changed
+8
@@ -19,10 +19,18 @@ SET(my_SRCS
|
||||
)
|
||||
|
||||
NGL_ADD_LIBRARY2(AAR SV CoPrtCnv SHARED ${my_SRCS} ${my_HDRS})
|
||||
find_package(Qt6 COMPONENTS Core QUIET)
|
||||
if (Qt6_FOUND)
|
||||
set(_QT_CORE_TARGET Qt6::Core)
|
||||
else()
|
||||
find_package(Qt5 COMPONENTS Core QUIET)
|
||||
set(_QT_CORE_TARGET Qt5::Core)
|
||||
endif()
|
||||
NGL_TARGET_LINK_LIBRARIES(CoPrtCnv
|
||||
PUBLIC
|
||||
NGLLogger
|
||||
tabTelegrams
|
||||
${_QT_CORE_TARGET}
|
||||
)
|
||||
NGL_TARGET_INCLUDE_DIRECTORIES(CoPrtCnv
|
||||
INTERFACE
|
||||
|
||||
Reference in new issue
Block a user