aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/CMakeLists.txt')
-rw-r--r--examples/basic/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/basic/CMakeLists.txt b/examples/basic/CMakeLists.txt
new file mode 100644
index 0000000..4f1902b
--- /dev/null
+++ b/examples/basic/CMakeLists.txt
@@ -0,0 +1,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)
+