3rdparty renamed to subprojects
This commit is contained in:
parent
fc308c644c
commit
2faa2fa019
6 changed files with 30 additions and 3 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,9 +1,9 @@
|
||||||
[submodule "3rdparty/nlohmann_json"]
|
[submodule "3rdparty/nlohmann_json"]
|
||||||
path = 3rdparty/nlohmann_json
|
path = subprojects/nlohmann_json
|
||||||
url = https://github.com/nlohmann/json.git
|
url = https://github.com/nlohmann/json.git
|
||||||
[submodule "3rdparty/singleapplication"]
|
[submodule "3rdparty/singleapplication"]
|
||||||
path = 3rdparty/singleapplication
|
path = subprojects/singleapplication/singleapplication.git
|
||||||
url = https://github.com/itay-grudev/SingleApplication.git
|
url = https://github.com/itay-grudev/SingleApplication.git
|
||||||
[submodule "3rdparty/csv-parser"]
|
[submodule "3rdparty/csv-parser"]
|
||||||
path = 3rdparty/csv-parser
|
path = subprojects/csv-parser
|
||||||
url = https://github.com/vincentlaucsb/csv-parser.git
|
url = https://github.com/vincentlaucsb/csv-parser.git
|
||||||
|
|
27
subprojects/singleapplication/meson.build
Normal file
27
subprojects/singleapplication/meson.build
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
project('singleapplication')
|
||||||
|
|
||||||
|
qt5 = import('qt5')
|
||||||
|
dep_qt5 = dependency('qt5', modules: ['Core', 'Widgets', 'Network'])
|
||||||
|
|
||||||
|
singleapp_inc = include_directories('singleapplication.git')
|
||||||
|
|
||||||
|
singleapp_moc = qt5.preprocess(
|
||||||
|
moc_headers: ['singleapplication.git/singleapplication.h', 'singleapplication.git/singleapplication_p.h'],
|
||||||
|
moc_extra_arguments: ['-DQAPPLICATION_CLASS=QApplication'],
|
||||||
|
dependencies: dep_qt5
|
||||||
|
)
|
||||||
|
|
||||||
|
singleapp_lib = static_library('SingleApplication',
|
||||||
|
['singleapplication.git/singleapplication.cpp', 'singleapplication.git/singleapplication_p.cpp', singleapp_moc],
|
||||||
|
include_directories: singleapp_inc,
|
||||||
|
cpp_args : '-DQAPPLICATION_CLASS=QApplication',
|
||||||
|
dependencies: dep_qt5
|
||||||
|
)
|
||||||
|
|
||||||
|
singleapp_dep = declare_dependency(
|
||||||
|
include_directories: singleapp_inc,
|
||||||
|
link_with: singleapp_lib
|
||||||
|
)
|
||||||
|
|
||||||
|
# On windows, SingleApplication needs to be linked against advapi32. This is
|
||||||
|
# done by adding 'advapi32' to cpp_winlibs, where it should be by default.
|
Loading…
Reference in a new issue