moc'ing a file in vs2017 from custom directory
-
so i created a new qt gui project in vs2017.
it creates a defaultMainWindow.h/cppfiles, main.cpp.i put the main window files in a new directory (
./src/gui) and now themoc_MainWindow.cpptries to include../../MainWindow.h(since the force include in project settings is set to../../%(Filename)%(Extension)). however, the files isn't there anymore.if i specify the path as
../../src/gui/%(Filename)%(Extension)manually, it works. but i don't wanna do this because i have other directories; i don't wanna always "scan" the directories for new qt files.any suggestions?
-
Hi,
How are you managing the project ? Directly in VS2017 ? Using a .pro file ?
-
This post is deleted!