QtSingleApplication

This commit is contained in:
Andrei Astafev 2024-03-29 10:51:23 +03:00
parent 100f939b68
commit a878d1a35e

View File

@ -0,0 +1,30 @@
# - Try to find QtSingleApplication
# Once done this will define
#
# QTSINGLEAPPLICATION_FOUND - System has QtSingleApplication
# QTSINGLEAPPLICATION_INCLUDE_DIRS - QtSingleApplication include directories
# QTSINGLEAPPLICATION_LIBRARIES - Link these to use QtSingleApplication
# QTSINGLEAPPLICATION_DEFINITIONS - Compiler switches required for using QtSingleApplication
# Copyright (C) 2010 Tanguy Krotoff <tkrotoff@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
set(QTSINGLEAPPLICATION_DEFINITIONS -DQT_QTSINGLEAPPLICATION_IMPORT)
find_path(QTSINGLEAPPLICATION_INCLUDE_DIRS
NAMES
QtSingleApplication
PATHS
/usr/include/x86_64-linux-gnu/qt5/QtSolutions
)
find_library(QTSINGLEAPPLICATION_LIBRARIES
NAMES
Qt5Solutions_SingleApplication-head
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QtSingleApplication DEFAULT_MSG QTSINGLEAPPLICATION_INCLUDE_DIRS QTSINGLEAPPLICATION_LIBRARIES)