50 lines
849 B
CMake
Executable File
50 lines
849 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
# CMakeLists.txt fuer DdsView
|
|
#
|
|
|
|
# Make ${Qt6_Gui} optional
|
|
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Gui)
|
|
set(Qt6_Gui ${Qt6_Gui})
|
|
else()
|
|
set(Qt6_Gui "")
|
|
endif()
|
|
|
|
# Make ${Qt6_Widgets} optional
|
|
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
|
|
set(Qt6_Widgets ${Qt6_Widgets})
|
|
else()
|
|
set(Qt6_Widgets "")
|
|
endif()
|
|
|
|
|
|
SET(testEditorTest_SRCS
|
|
main.cpp
|
|
textedit.cpp
|
|
textedit.h
|
|
)
|
|
|
|
NGL_ADD_TOOL_ICON(testEditorTest_SRCS "dds")
|
|
|
|
NGL_ADD_EXECUTABLE(textEditorTest TOOLSWS TOOLSSV NO_TRANSLATION WIN32 ${testEditorTest_SRCS})
|
|
if(QT6_GUI_AVAILABLE)
|
|
NGL_TARGET_LINK_LIBRARIES(textEditorTest
|
|
LtsWidgets
|
|
nglapplication
|
|
NGLLogger
|
|
nglsettings
|
|
nglwidgets
|
|
Qt6::Core
|
|
Qt6::Core5Compat
|
|
${Qt6_Gui}
|
|
${Qt6_Widgets}
|
|
Qt6::Xml
|
|
Qt6::PrintSupport
|
|
)
|
|
endif()
|
|
|
|
NGL_INSTALL_TARGET(textEditorTest)
|