aboutsummaryrefslogtreecommitdiff
path: root/examples/basic
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic')
-rw-r--r--examples/basic/CMakeLists.txt15
-rwxr-xr-xexamples/basic/basic.pro5
-rw-r--r--examples/basic/meson.build4
3 files changed, 4 insertions, 20 deletions
diff --git a/examples/basic/CMakeLists.txt b/examples/basic/CMakeLists.txt
deleted file mode 100644
index 4f1902b..0000000
--- a/examples/basic/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-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)
-
diff --git a/examples/basic/basic.pro b/examples/basic/basic.pro
deleted file mode 100755
index b7af16c..0000000
--- a/examples/basic/basic.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-# Single Application implementation
-include(../../singleapplication.pri)
-DEFINES += QAPPLICATION_CLASS=QCoreApplication
-
-SOURCES += main.cpp
diff --git a/examples/basic/meson.build b/examples/basic/meson.build
new file mode 100644
index 0000000..ba17a02
--- /dev/null
+++ b/examples/basic/meson.build
@@ -0,0 +1,4 @@
+executable('basic',
+ sources: 'main.cpp',
+ dependencies: [ SingleApplication_dep, dep_qt5 ]
+)