Fix MSVC Meson build

This commit is contained in:
zxey 2018-01-17 18:07:34 +01:00
parent 41c33f7751
commit b551d44955
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)