diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-13 11:35:02 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-04-13 11:35:02 +0300 |
commit | 6f2169ca6924100f309039efb502ae1af2d27113 (patch) | |
tree | 82efcb543cea648bf0e9c636947571d7e3ae85f9 /examples/basic | |
parent | Fix old-style cast warnings (diff) | |
download | singleapplication-6f2169ca6924100f309039efb502ae1af2d27113.tar.xz |
Add meson build support
Remove CMakeLists and qmake project files
Diffstat (limited to 'examples/basic')
-rw-r--r-- | examples/basic/CMakeLists.txt | 15 | ||||
-rwxr-xr-x | examples/basic/basic.pro | 5 | ||||
-rw-r--r-- | examples/basic/meson.build | 4 |
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 ] +) |