aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/CMakeLists.txt
blob: 4f1902b629af318bdd4aa8f9efe9e6df9142b09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)