Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Viewer/LtsDataView/CMakeLists.txt
T
torstenandCopilot cdb8c754e9 Add GROUP5 build configuration and CTest registration for Viewer module
- Add GROUP5_TARGETS array with 7 Viewer module targets to new_docker_build.sh
- Add BUILD_GRANTLEE support throughout build script (help, env vars, cmake invocation)
- Fix duplicate BUILD_GROUP4 default in container script section
- Register LtsDataViewTest with CTest in LtsDataView/CMakeLists.txt
- Register LtsFileDialogTest with CTest in LtsFileDialog/CMakeLists.txt
- Update help text to document --group5/--no-group5 and --grantlee/--no-grantlee options
- Set BUILD_GROUP5=OFF and BUILD_GRANTLEE=ON as defaults

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-22 16:50:49 +02:00

79 lines
1.5 KiB
CMake
Executable File

#
# CMakeLists.txt for Data View
#
# $Id$
# $HeadURL$
# $Author$
# Created by Mike Wille, SLSE, 2016-06-15
#
# Make ${Qt6_Widgets} optional
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
set(Qt6_Widgets ${Qt6_Widgets})
else()
set(Qt6_Widgets "")
endif()
SET(ltsDataView_SRCS
lts_data_view_export.h
lts_data_view.h
lts_data_view.cpp
abstract_display_widget.h
abstract_display_widget.cpp
search_model.cpp
search_model.h
tree_view.cpp
tree_view.h
check_state_proxy_model.h
check_state_proxy_model.cpp
tree_view_delegate.cpp
tree_view_delegate.h
icon_view_delegate.cpp
icon_view_delegate.h
data_delegate.cpp
data_delegate.h
lts_columns_setting.cpp
lts_columns_setting.h
)
NGL_WRAP_UI(ltsDataView_SRCS
lts_data_view.ui
lts_columns_setting.ui
)
NGL_ADD_LIBRARY(WS LtsDataView SHARED ${ltsDataView_SRCS})
if(QT6_GUI_AVAILABLE)
NGL_TARGET_LINK_LIBRARIES(LtsDataView
PRIVATE
LtsWidgets
LtsUtilsSettings
ngltools
PUBLIC
Qt6::Core
${Qt6_Widgets}
)
endif()
NGL_TARGET_INCLUDE_DIRECTORIES(LtsDataView
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../
)
NGL_INSTALL_TARGET(LtsDataView)
# Test-Executable
NGL_ADD_EXECUTABLE(WS NO_TRANSLATION LtsDataViewTest test.h test.cpp)
if(QT6_GUI_AVAILABLE)
NGL_TARGET_LINK_LIBRARIES(LtsDataViewTest
${Qt6_Widgets}
LtsDataView
LtsWidgets
)
endif()
# Register test with CTest
if(BUILD_TESTING)
add_test(NAME LtsDataViewTest COMMAND $<TARGET_FILE:LtsDataViewTest>)
endif()