43 lines
840 B
CMake
Executable File
43 lines
840 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
# Created by Christian Ehrlicher, SLSE, 2017-12-05
|
|
#
|
|
|
|
if(QT6_GUI_AVAILABLE)
|
|
find_package(KDReports QUIET)
|
|
endif()
|
|
|
|
SET(SRCS
|
|
printing_base.cpp
|
|
printing_base.h
|
|
printing.cpp
|
|
printing.h
|
|
)
|
|
|
|
if (KDReports_FOUND AND QT6_GUI_AVAILABLE AND BUILD_CODIFICATION)
|
|
NGL_ADD_LIBRARY2(WS LtsPrinting SHARED ${SRCS})
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(LtsPrinting
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
)
|
|
if(QT6_GUI_AVAILABLE)
|
|
NGL_TARGET_LINK_LIBRARIES(LtsPrinting
|
|
PRIVATE
|
|
KDReports::KDReports
|
|
LtsSessionData
|
|
LtsSession
|
|
nglsettings
|
|
ngltools
|
|
PUBLIC
|
|
Qt6::PrintSupport
|
|
Qt6::Core
|
|
)
|
|
endif()
|
|
NGL_INSTALL_TARGET(LtsPrinting)
|
|
else()
|
|
message(STATUS "KDReports not found or BUILD_RTI disabled; skipping LtsPrinting target")
|
|
endif()
|