39 lines
682 B
CMake
Executable File
39 lines
682 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
# Created by Christian Ehrlicher, SLSE, 2017-12-05
|
|
#
|
|
|
|
FIND_PACKAGE(KDReports)
|
|
|
|
SET(SRCS
|
|
printing_base.cpp
|
|
printing_base.h
|
|
printing.cpp
|
|
printing.h
|
|
)
|
|
|
|
if (KDReports_FOUND)
|
|
NGL_ADD_LIBRARY(WS LtsPrinting SHARED ${SRCS})
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(LtsPrinting
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
)
|
|
NGL_TARGET_LINK_LIBRARIES(LtsPrinting
|
|
PRIVATE
|
|
KDReports::KDReports
|
|
LtsSessionData
|
|
LtsSession
|
|
nglsettings
|
|
ngltools
|
|
PUBLIC
|
|
Qt5::PrintSupport
|
|
Qt5::Core
|
|
)
|
|
NGL_INSTALL_TARGET(LtsPrinting)
|
|
else()
|
|
message(STATUS "KDReports not found; skipping LtsPrinting target")
|
|
endif()
|