Browse Source

3rdparty renamed to subprojects

master
Martin Brodbeck 2 years ago
parent
commit
2faa2fa019
  1. 6
      .gitmodules
  2. 0
      subprojects/CMakeLists.txt
  3. 0
      subprojects/csv-parser
  4. 0
      subprojects/nlohmann_json
  5. 27
      subprojects/singleapplication/meson.build
  6. 0
      subprojects/singleapplication/singleapplication.git

6
.gitmodules

@ -1,9 +1,9 @@
[submodule "3rdparty/nlohmann_json"]
path = 3rdparty/nlohmann_json
path = subprojects/nlohmann_json
url = https://github.com/nlohmann/json.git
[submodule "3rdparty/singleapplication"]
path = 3rdparty/singleapplication
path = subprojects/singleapplication/singleapplication.git
url = https://github.com/itay-grudev/SingleApplication.git
[submodule "3rdparty/csv-parser"]
path = 3rdparty/csv-parser
path = subprojects/csv-parser
url = https://github.com/vincentlaucsb/csv-parser.git

0
3rdparty/CMakeLists.txt → subprojects/CMakeLists.txt

0
3rdparty/csv-parser → subprojects/csv-parser

0
3rdparty/nlohmann_json → subprojects/nlohmann_json

27
subprojects/singleapplication/meson.build

@ -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.

0
3rdparty/singleapplication → subprojects/singleapplication/singleapplication.git

Loading…
Cancel
Save