aboutsummaryrefslogtreecommitdiff
path: root/examples/calculator/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/calculator/CMakeLists.txt')
-rw-r--r--examples/calculator/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/calculator/CMakeLists.txt b/examples/calculator/CMakeLists.txt
new file mode 100644
index 0000000..c90257a
--- /dev/null
+++ b/examples/calculator/CMakeLists.txt
@@ -0,0 +1,20 @@
+cmake_minimum_required(VERSION 3.1.0)
+
+project(calculator)
+
+set(CMAKE_AUTOMOC ON)
+
+# SingleApplication base class
+set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
+
+add_executable(${PROJECT_NAME}
+ button.h
+ calculator.h
+ button.cpp
+ calculator.cpp
+ main.cpp
+ )
+
+find_package(Qt5 COMPONENTS Widgets REQUIRED)
+add_subdirectory(../.. SingleApplication)
+target_link_libraries(${PROJECT_NAME} Qt5::Widgets SingleApplication)