Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-20 Thread Alan W. Irwin
On 2016-10-20 12:27-0700 Alan W. Irwin wrote: One especially useful thing I realized from your post is my current use of a custom_target that depends on MOC_OUT (in your above nomenclature) is essentially a no-op since MOC_OUT is generated at CMake time rather then set up as a custom command to

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-20 Thread Alan W. Irwin
On 2016-10-20 13:48-0500 Steve Lorimer wrote: Sounds like you have ended up at the same solution I did. I had trouble getting the automated qt generation working, and in the end I made it explicit if(ARG_MOC) qt5_wrap_cpp(MOC_OUT ${ARG_MOC}) endif() if(ARG_RES) qt5_add_resources(RES_OUT ${ARG_R

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-20 Thread Steve Lorimer
Sounds like you have ended up at the same solution I did. I had trouble getting the automated qt generation working, and in the end I made it explicit if(ARG_MOC) qt5_wrap_cpp(MOC_OUT ${ARG_MOC}) endif() if(ARG_RES) qt5_add_resources(RES_OUT ${ARG_RES}) endif() if(ARG_UI) qt5_wrap_ui(UI_OUT ${ARG_

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-20 Thread Alan W. Irwin
Since I have gotten no response to my posts with this subject line, I assume automoc really is currently unsuitable for the case where the header that should be processed by moc is located in a different source-tree directory than the source file that includes that header. I temporarily worked aro

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
On 2016-10-16 18:40-0700 Alan W. Irwin wrote: To be explicit suppose you have some source code named fooqt.cpp which contains #include "barqt.h" which declares some classes for the software package that refer to Q_OBJECT and some classes that do not refer to Q_OBJECT. What is the #include rec

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
On 2016-10-16 13:43-0700 Alan W. Irwin wrote: Hi Stephen: I am addressing you directly (as well as the list) because you have been so helpful with Qt5 issues in the past. The PLplot build system (some of whose components depend on Qt5) currently uses one of the older Qt5 support methods docume

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
On 2016-10-16 13:43-0700 Alan W. Irwin wrote: To move to a related topic, the above URL has a tutorial example for the recommended support method which builds the helloworld target from main.cpp. It would be nice for Qt5 users to learn from that tutorial example by building it themselves, but t