From 6673ba53c17bb1ab99a1e7629156d99452213747 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 23 Oct 2018 03:58:33 +0200 Subject: Initial meson build files --- 3rd-party/SingleApplication/meson.build | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 3rd-party/SingleApplication/meson.build (limited to '3rd-party/SingleApplication') diff --git a/3rd-party/SingleApplication/meson.build b/3rd-party/SingleApplication/meson.build new file mode 100644 index 0000000..a52df27 --- /dev/null +++ b/3rd-party/SingleApplication/meson.build @@ -0,0 +1,25 @@ +SingleApplication_inc = include_directories('SingleApplication.git') + +SingleApplication_moc = qt5.preprocess( + moc_headers: ['SingleApplication.git/singleapplication.h', 'SingleApplication.git/singleapplication_p.h'], + dependencies: dep_qt5 +) + +SingleApplication_lib = static_library('SingleApplication', + ['SingleApplication.git/singleapplication.cpp', 'SingleApplication.git/singleapplication_p.cpp'], + cpp_args : '-DQAPPLICATION_CLASS=QApplication', + dependencies: dep_qt5 +) + +dep_SingleApplication = declare_dependency( + include_directories: SingleApplication_inc, + link_with: SingleApplication_lib +) + +# target_include_directories(['SingleApplication', 'PUBLIC', 'SingleApplication.git']) +# target_link_libraries(['SingleApplication', 'Qt5::Core', 'Qt5::Network', 'Qt5::Widgets']) +# target_compile_definitions(['SingleApplication', 'PRIVATE', 'QAPPLICATION_CLASS=QApplication']) + +#if cmake_system_name, 'MATCHES', 'Windows' + # target_link_libraries(['SingleApplication', 'Advapi32']) +#endif -- cgit v1.2.1