Merge pull request #69 from zxey/master

Fix MSVC Meson build
This commit is contained in:
Filippo Cucchetto 2018-01-20 10:36:41 +01:00 committed by GitHub
commit ff1d7e13d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ lib_sources = [
'src/OnSlotExecutedHandler.cpp',
]
lib_include_directories = ['include', 'include/Qt']
lib_pch = '../pch/lib_pch.h'
lib_pch = ['../pch/lib_pch.h', '../pch/lib_pch.cpp']
lib = shared_library('DOtherSide',
sources : lib_sources,

1
pch/lib_pch.cpp Normal file
View File

@ -0,0 +1 @@
#include "lib_pch.h"

1
pch/test_pch.cpp Normal file
View File

@ -0,0 +1 @@
#include "test_pch.h"

View File

@ -2,7 +2,7 @@ test_dependencies = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Quic
test_sources = ['test_dotherside.cpp', 'MockQAbstractItemModel.cpp', 'MockQObject.cpp']
test_resources = 'Resources.qrc'
test_include_directories = ['../lib/include', '../lib/include/Qt']
test_pch = '../pch/test_pch.h'
test_pch = ['../pch/test_pch.h', '../pch/test_pch.cpp']
qt5 = import('qt5')
test_moc_files = qt5.preprocess(moc_sources : test_sources, qresources : test_resources)