# This file is part of GammaRay, the Qt application inspection and manipulation tool. # # SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB, a KDAB Group company # # SPDX-License-Identifier: GPL-2.0-or-later # # Contact KDAB at for commercial licensing options. # # command line launcher set(gammaray_runner_srcs main.cpp) gammaray_add_win_icon(gammaray_runner_srcs) add_executable( gammaray ${gammaray_runner_srcs} ) target_link_libraries( gammaray gammaray_launcher gammaray_common ) if(HAVE_QT_WIDGETS) target_link_libraries(gammaray Qt::Gui Qt::Widgets) endif() gammaray_embed_info_plist(gammaray ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in) gammaray_set_rpath(gammaray ${BIN_INSTALL_DIR}) install( TARGETS gammaray ${INSTALL_TARGETS_DEFAULT_ARGS} ) if(ZSHAUTOCOMPLETE_INSTALL_DIR) install( FILES completions/gammaray.zsh RENAME _gammaray DESTINATION ${ZSHAUTOCOMPLETE_INSTALL_DIR} ) endif() if(MSVC) install( FILES "$/$" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug RelWithDebInfo ) endif()