48 lines
757 B
CMake
Executable File
48 lines
757 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
# Created by Hanna Rathje, SLSE, 2017-12-14
|
|
#
|
|
|
|
# Make ${Qt6_Widgets} optional
|
|
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
|
|
set(Qt6_Widgets ${Qt6_Widgets})
|
|
else()
|
|
set(Qt6_Widgets "")
|
|
endif()
|
|
|
|
|
|
SET(SRCS
|
|
aar_application.cpp
|
|
aar_application.h
|
|
databases_model.cpp
|
|
databases_model.h
|
|
logger.cpp
|
|
logger.h
|
|
main.cpp
|
|
)
|
|
|
|
NGL_WRAP_UI(SRCS aarApp.ui)
|
|
|
|
NGL_ADD_EXECUTABLE(AAR aarApp ${SRCS})
|
|
|
|
if(QT6_GUI_AVAILABLE)
|
|
NGL_TARGET_LINK_LIBRARIES(aarApp
|
|
${Qt6_Widgets}
|
|
Qt6::Core
|
|
nglapplication
|
|
ngldb
|
|
nglcoreapplication
|
|
ngltools
|
|
ngltranslator
|
|
nglwidgets
|
|
NGLLogger
|
|
LtsCommandLineParser
|
|
)
|
|
endif()
|
|
|
|
NGL_INSTALL_TARGET(aarApp)
|
|
NGL_INSTALL(AAR FILES log4cxx_aarApp.props DESTINATION bin)
|
|
|