mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-03-14 10:09:52 +08:00

Some checks failed
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j2, -D QT_DEFAULT_MAJOR_VERSION=6, make, ubuntu-20.04, 6.2.4) (push) Failing after 9s
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j2, -D QT_DEFAULT_MAJOR_VERSION=6, make, ubuntu-20.04, 6.5.0) (push) Failing after 9s
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j2, make, ubuntu-20.04, 5.15.0) (push) Failing after 9s
Documentation / Doxygen (push) Failing after 3h14m57s
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j3, -D QT_DEFAULT_MAJOR_VERSION=6, make, macos-13, 6.2.4) (push) Has been cancelled
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j3, -D QT_DEFAULT_MAJOR_VERSION=6, make, macos-13, 6.5.0) (push) Has been cancelled
CI: Build Test / Build (-Wall -Wextra -pedantic -Werror, -j3, make, macos-13, 5.15.0) (push) Has been cancelled
CI: Build Test / Build (/W4 /WX /MP, -D QT_DEFAULT_MAJOR_VERSION=6, nmake, windows-latest, 6.2.4) (push) Has been cancelled
CI: Build Test / Build (/W4 /WX /MP, -D QT_DEFAULT_MAJOR_VERSION=6, nmake, windows-latest, 6.5.0) (push) Has been cancelled
CI: Build Test / Build (/W4 /WX /MP, nmake, windows-latest, 5.15.0) (push) Has been cancelled
This is a pure extension and fully backwards compatible. * Adds support for running it as a pre-compiled library while still being able to choose my `QXxxApplication` class at build time. * Be able to decide at runtime whether to use the single instance stuff (without starting a server and so on).
21 lines
482 B
CMake
21 lines
482 B
CMake
cmake_minimum_required(VERSION 3.7.0)
|
|
|
|
project(separate_object LANGUAGES CXX)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# SingleApplication base class
|
|
set(QAPPLICATION_CLASS FreeStandingSingleApplication)
|
|
add_subdirectory(../.. SingleApplication)
|
|
|
|
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS Core REQUIRED)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
main.cpp
|
|
messagereceiver.cpp
|
|
messagereceiver.h
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication)
|