[CMake] CMake does not work well on VS2010 regarding to 'Output File' option

2011-04-25 Thread Zhijun Zhao
Hi, Short story: Correct me if I'm wrong, CMake will automatically append the ${CONFIG} , either debug or release, to the output file path. This is fine if my output directory is .../someplace/debug/ or .../someplace/release/ . But if I want the output directory like .../someplace/hybrid/, it's

Re: [CMake] BundleUtilities and super-build

2011-04-25 Thread Michael Wild
On 04/23/2011 12:46 PM, Michael Wild wrote: > Hi all > > I'm trying to use BundleUtilities with MSVC 9 to install the required > Qt4 DLL's of the GUI sub-project into a common prefix in the super-build > binary directory. The process fails with the (abbreviated) output at the > end of this message

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Wild
On 04/25/2011 05:03 PM, Michael Hertling wrote: > On 04/25/2011 01:53 PM, Michael Wild wrote: >> On 04/25/2011 12:48 PM, Michael Hertling wrote: >>> On 04/24/2011 04:56 PM, Campbell Barton wrote: 2011/4/23 YangXi : > In my program, I have several pictures and plain-text data > files. U

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Eric Noulard
2011/4/25 Clifford Yapp : > Eric, > > Thanks - that looks like it will do the trick, testing now.  Is there > a bug report somewhere proposing using CMake-level per-generator > variables to control these things? AFAIK there aren't any. Now adding this for ALL CPack generators would honestly be a

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Clifford Yapp
Eric, Thanks - that looks like it will do the trick, testing now. Is there a bug report somewhere proposing using CMake-level per-generator variables to control these things? Cheers, CY ___ Powered by www.kitware.com Visit other Kitware open-source pr

Re: [CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Eric Noulard
2011/4/25 Clifford Yapp : > I'm trying to generate both source tarballs and binary packages using > CPack, and I'm at something of a loss as to how to achieve the > following: > > I want the binaries (RPM, DEB, etc.) to respect the > CMAKE_INSTALL_PREFIX.  I want the source tarballs to expand into

[CMake] Generating archives and binaries with different PREFIX settings using CPack

2011-04-25 Thread Clifford Yapp
I'm trying to generate both source tarballs and binary packages using CPack, and I'm at something of a loss as to how to achieve the following: I want the binaries (RPM, DEB, etc.) to respect the CMAKE_INSTALL_PREFIX. I want the source tarballs to expand into their directory like a standard tarba

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
On Mon, Apr 25, 2011 at 11:42 AM, Eric Noulard wrote: > 2011/4/25 James Bigler : > > If I have a custom command: > > > > add_custom_command(OUTPUT myfile.out) > > > > Then I add that file to the target: > > > > add_executable(mytarget main.cpp myfile.out) > > > > If I do a 'make help' I get rules

Re: [CMake] OS X and getline ?

2011-04-25 Thread AJ ONeal
Thank you Mike and Eric, Mike, This is the level of detail that I was hoping for in regards to CMake. In order to get it to compile I had copy/pasted a getline substitute. Now I'll go back and try to configure CMake correctly so that it works on both OS X and Linux. Eric, The second link you

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread Eric Noulard
2011/4/25 James Bigler : > If I have a custom command: > > add_custom_command(OUTPUT myfile.out) > > Then I add that file to the target: > > add_executable(mytarget main.cpp myfile.out) > > If I do a 'make help' I get rules for main.o, but none for myfile.out.  Is > there something I can add to cre

[CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a 'make help' I get rules for main.o, but none for myfile.out. Is there something I can add to create a helper makefile target? Thanks, Ja

Re: [CMake] SuperBuild whoes

2011-04-25 Thread Michael Wild
On 04/25/2011 04:51 PM, Michael Hertling wrote: [...] >> >> I also solved my installation problem. By having all sub-projects >> install into a common prefix, and thanks to the wonders of RPATH and >> install_name which can handle relative paths and thanks to the fact that >> install(EXPORT) genera

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Hertling
On 04/25/2011 01:53 PM, Michael Wild wrote: > On 04/25/2011 12:48 PM, Michael Hertling wrote: >> On 04/24/2011 04:56 PM, Campbell Barton wrote: >>> 2011/4/23 YangXi : In my program, I have several pictures and plain-text data files. Usually in a unix system, they should be placed on

Re: [CMake] SuperBuild whoes

2011-04-25 Thread Michael Hertling
On 04/21/2011 03:44 PM, Michael Wild wrote: > On 04/21/2011 02:45 PM, David Cole wrote: >> On Thu, Apr 21, 2011 at 4:30 AM, Michael Wild > > wrote: >> >> On 04/21/2011 06:48 AM, Michael Wild wrote: >> > Hi all >> > >> > I'm trying to set up a SuperBuild her

Re: [CMake] OS X and getline ?

2011-04-25 Thread j s
Hello, I did a quick search for a bsd equivalent and found this: http://doubletalkin.blogspot.com/2008/08/fgetln-replacement-for-getline-in-bsd.html To use this you would probably have to use the appropriate include guards or use a macro to redefine the name of the function. Regards, Juan On

Re: [CMake] OS X and getline ?

2011-04-25 Thread Michael Jackson
For the CMake side of things you can actually check for the function during the initial cmake checks: INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) CHECK_FUNCTION_EXISTS(getline HAS_GETLINE) This will perform the check and put the result into the variable "HAS_GETLINE". The easiest

Re: [CMake] OS X and getline ?

2011-04-25 Thread Eric Noulard
2011/4/25 AJ ONeal : > What's the preferred solution to the OS X getline problem (meaning that it > doesn't exist in OS X's libc) when using CMake? > ("Don't use getline" isn't an option) I don't think this is a CMake question. If you need getline on OS X then may be you'll have to provide an impl

Re: [CMake] How to use PNG instead of BMP for NSIS installer generator?

2011-04-25 Thread David Cole
Have you tried it? What were the results? This is more of a question for the NSIS community, I think. On Sat, Apr 23, 2011 at 12:06 PM, NoRulez wrote: > Hello, > > > > is it possible to use *.PNG images instead of the BMP images for > header/sidebar? > > > > Thanks in advance > > > > Best Rega

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Wild
On 04/25/2011 12:48 PM, Michael Hertling wrote: > On 04/24/2011 04:56 PM, Campbell Barton wrote: >> 2011/4/23 YangXi : >>> In my program, I have several pictures and plain-text data files. Usually in >>> a unix system, they should be placed on /usr/share/my_program/some_place. >>> How could I defin

Re: [CMake] How to define datafiles?

2011-04-25 Thread Michael Hertling
On 04/24/2011 04:56 PM, Campbell Barton wrote: > 2011/4/23 YangXi : >> In my program, I have several pictures and plain-text data files. Usually in >> a unix system, they should be placed on /usr/share/my_program/some_place. >> How could I define those files in CMakeLists, and make their location k