编译处理。

This commit is contained in:
2026-04-09 19:13:06 +08:00
parent 5644e5d6fb
commit 0b05118fec
105 changed files with 44976 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
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)