mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-02-21 01:09:18 +08:00

* Add CMake support * Remove unused 'tr()' * Add option to specify a class for inheritance * Use modern syntax * Rework CMakeLists.txt Thanks to @akallabeth * Add CMake build rules for examples
16 lines
377 B
CMake
16 lines
377 B
CMake
cmake_minimum_required(VERSION 3.1.0)
|
|
|
|
project(basic)
|
|
|
|
# SingleApplication base class
|
|
set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication")
|
|
|
|
add_executable(basic
|
|
main.cpp
|
|
)
|
|
|
|
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
add_subdirectory(../.. SingleApplication)
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Core SingleApplication)
|
|
|