From: <p.d...@gm...> - 2016-12-29 18:46:04
|
Hi Alan I don't know enough about cmake and how it creates visual studio projects/solutions to know what will work. All I know is that cmake generates a visual studio solution, which when opened in visual studio contains multiple projects, one for each target (library and executable) and some others for executing other commands or bulk builds such as ALL and INSTALL. I can right click any of these and hit build, to build just that project. Or for the executable ones I can right click them and hit debug to run them in the debugger. If I right click a library project and hit debug then I just get an error. From memory there is a property like “debug target” that must be set and I think for executables it defaults to the build target, whereas for libraries it is blank. Just setting a command to execute at the end of a build wouldn't do the job as it wouldn't run in the debugger, which is often the aim. I'm not sure what is so bad about setting the viewer as a dependency of the examples? Anyway, you know the issue and you know cmake way better than me so just go for it and we can see how it works. Phil Sent from my Windows 10 phone From: Alan W. Irwin Sent: 29 December 2016 18:30 To: Phil Rosenberg; Pedro Vicente; Laurent Berger; PLplot development list Subject: RE: wxwidgets-related dependencies On 2016-12-29 08:47-0000 p.d...@gm... wrote: > Hi Alan > I'm not sure if that [test_x00c_wxPLViewer, etc. targets] would work. If I execute (I.e. Run or debug) that project, would it run the example? Hi Phil: If the custom target has no associated COMMAND, what should happen is instead of clicking on the all button to rebuild everything, you would be clicking on the test_x00c_wxPLViewer, etc., buttons to rebuild just the subset of the project that you need. In other words, that should completely satisfy the limited rebuild need you expressed. However, there is a bigger possibility here as well which is to use COMMAND see <https://cmake.org/cmake/help/latest/command/add_custom_target.html> to actually execute the example appropriately after the rebuilds when you click on test_x00c_wxPLViewer, etc. I can guarantee this approach (building all prerequisites then running the appropriate C standard example using -dev wxwidgets) will work on the command line with Unix shell and make when you build one of the test_x00c_wxPLViewer, etc. targets, and I am virtually positive it will also work with Windows CMD and nmake as well. But we don't really know whether that bigger possibility would work with your particular IDE until we try it. So after the release when we both will have more time for this, we should do some joint experiments both with nmake and your IDE to figure out what is most useful to you and other Windows developers/testers. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |