Re: [CMake] Example using ExternalProject for configure+make and/or Win32?

2010-08-19 Thread Clifford Yapp
On Thu, Aug 19, 2010 at 11:14 PM, Brian Davis wrote: > there is : > >>    [CONFIGURE_COMMAND cmd...]  # Build tree configuration command > > so may be this works.  I have not used it so I can not speak to it. > problem will be if on Windows systems is finding an autotools that would > wor

Re: [CMake] Example using ExternalProject for configure+make and/or Win32?

2010-08-19 Thread Brian Davis
I am posting this back to cmake so others can follow along. I too use gmail and often forget the reply all. On Thu, Aug 19, 2010 at 9:11 PM, Clifford Yapp wrote: > Um... if you mean "CMakeified" in the sense of them having CMake files > for building, no... my understanding was that you don't re

[CMake] Re: OS X and CPack not bundling the support libraries?

2010-08-19 Thread Michael Jackson
And just to follow up with my own answer I have a file that gets "configured" during CMake time with the following code in it: include(BundleUtilities) fixup_bundle("@CMAKE_INSTALL_PREFIX@/@tar...@.app" "@COMPLETE_PLUGIN_LIST@" "@PLUGIN_SEARCH_DIRS@") Which hard codes the complete installation

[CMake] OS X and CPack not bundling the support libraries?

2010-08-19 Thread Michael Jackson
I have a CMake based project that produces an OS X App bundle with libraries, Frameworks, and plugins. If I do a "make install" then the app bundle is created just fine. But if I do "make package" then I get the "shell" of the app bundle but none of the required libraries are include. Kinda like

Re: [CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread Michael Hertling
On 08/19/2010 09:42 PM, Michael Wild wrote: > > In that case I recommend creating a CMake script (e.g. > create_application_version.cmake) which creates the ApplicationVersion.xml > file. It queries the current revision (have a look at FindSVN.cmake on how to > do this), determines the date and

Re: [CMake] cmake out of source build writes build files at source dirs?

2010-08-19 Thread Claus Klein
Ok, done http://cmake.org/Bug/view.php?id=11153 //regards Claus On 16.08.2010, at 09:28, Bo Thorsen wrote: Hi Claus, If you didn't already, please post this to http://cmake.org/Bug instead. The CMake people usually don't take bug reports from this list. Bo. Den 28-07-2010 20:34, Claus

Re: [CMake] cmake out of source build writes build files at source dirs?

2010-08-19 Thread Claus Klein
Hi Alex, No, I dit not write a bug report yet. The 10994 seems an other problem, I have the CMakeLists.txt at the root dir, together with my build subdir. So my binary build tree is located at inside the source tree at project root. And this is the root of the substituded drive. Claus On

[CMake] How to add CORBA idl files to Visual Studio source group

2010-08-19 Thread Claus Klein
Hi, I have a project with CORBA idl files, which will be compiled with a tao idl compiler to source and header files via a: add_custom_command(OUTPUT output1 [output2 ...] ...) I defined a source group with: source_group(idlfiles REGULAR_EXPRESSION *.idl) The generated sour

Re: [CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread norulez
OK, thank you very much, I will try it Best Regards NoRulez Am 19.08.2010 um 21:42 schrieb Michael Wild : > > In that case I recommend creating a CMake script (e.g. > create_application_version.cmake) which creates the ApplicationVersion.xml > file. It queries the current revision (have a loo

Re: [CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread Michael Wild
In that case I recommend creating a CMake script (e.g. create_application_version.cmake) which creates the ApplicationVersion.xml file. It queries the current revision (have a look at FindSVN.cmake on how to do this), determines the date and time (this is a problem, refer to this thread for mo

Re: [CMake] Warnings and error

2010-08-19 Thread Alexander Neundorf
On Thursday 19 August 2010, Johny wrote: > Hey, > > Is there any way to increase the number of warnings and errors displayed > on CDash ? Also can we somehow suppress certain warnings and errors ? Yes, you have to create a CTestCustom.cmake: http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Custo

Re: [CMake] Anjuta

2010-08-19 Thread Alexander Neundorf
On Thursday 19 August 2010, Micha Renner wrote: > Does CMake support Anjuta? There is currently no special support for Anjuta. Depending on how the project files of Anjuta look like (assuming it has its own project files), writing either a full project generator for Anjuta or a makefile-based on

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Roman Wüger
CMake is a Makefile-Generator an nothing elseWhy would you write the Makefiles by yourself?Best RegardsNoRulezAm 19. Aug 2010 um 16:12 schrieb Eric Noulard :2010/8/19 Mr Shore : > Basically, cmake parsor can understand makefile, that's why it can generate > makefile from CMakeLists.txt, As far as

Re: [CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread Roman Wüger
The file should be updated every time a build is started.Best RegardsNoRulezAm 19. Aug 2010 um 16:48 schrieb Michael Wild : On 19. Aug, 2010, at 16:38 , Roman Wüger @mac.com wrote: > Hello, > > i need to create a file called "ApplicationVersion.xml" before the main source file (main.cpp) would b

[CMake] Warnings and error

2010-08-19 Thread Johny
Hey, Is there any way to increase the number of warnings and errors displayed on CDash ? Also can we somehow suppress certain warnings and errors ? Cheers, Johny ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.

Re: [CMake] Setting CMAKE_CXX_FLAGS..., CMAKE_C_FLAGS... and CMAKE_C_STANDARD_LIBRARIES_INIT and friends on a per target basis

2010-08-19 Thread Brian Davis
> > > We override the standard CMAKE__FLAGS (C CXX Fortran) and use it as a > baseline. Then, for individual source files it is possible to override them > in a separate file using: > > Yes this is seemingly common practice in CMake land. The problem with this approach is when using add_subdirecto

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-19 Thread Andreas Pakulat
On 19.08.10 09:26:26, Brad King wrote: > On 08/18/2010 01:01 AM, Andreas Pakulat wrote: > > On 17.08.10 14:53:02, Brad King wrote: > >> The source file is being compiled in a target that does not > >> wait for the header to be generated before compiling. We can > >> add a dependency on the target

Re: [CMake] PDBs patch for VS2010 generator

2010-08-19 Thread Brad King
On 08/18/2010 02:59 PM, Robert Goulet wrote: > I would like to submit the following changes to the cmake repository > until someone finds a better solution. Looks good. I've put it in 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e2341226 Thanks, -Brad ___

Re: [CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread Michael Wild
On 19. Aug, 2010, at 16:38 , Roman Wüger @mac.com wrote: > Hello, > > i need to create a file called "ApplicationVersion.xml" before the main > source file (main.cpp) would be compiled. > The file should contain some application details and the current Date/Time > and SVN Revision. > > How c

[CMake] Creating custom file before building/compiling with cmake

2010-08-19 Thread Roman Wüger
Hello,i need to create a file called "ApplicationVersion.xml" before the main source file (main.cpp) would be compiled.The file should contain some application details and the current Date/Time and SVN Revision.How can I create such file before the source file are compiled?How can I get the current

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > Basically, cmake parsor can understand makefile, that's why it can generate > makefile from CMakeLists.txt, As far as I know CMake does NOT understand Makefile it does **generates** makefiles which is totally different story. Again AFAIK CMake is never **reading** a Makefil

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread David Cole
MySQL already builds with CMake, currently. For example, search for cmake on this page: http://dev.mysql.com/doc/refman/5.1/en/connector-c-building.html On Thu, Aug 19, 2010 at 9:39 AM, Eric Noulard wrote: > 2010/8/19 Mr Shore : > > Actually it's not my projects, but the well known projects lik

[CMake] Anjuta

2010-08-19 Thread Micha Renner
Does CMake support Anjuta? Greetings Micha ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/W

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > Actually it's not my projects, but the well known projects like MySQL, > Firefox and so on.. CMakeifying this kind of project may not be an easy task, moreover my own opinion is that you shoudl ensure that the project stakeholder may be interested in this effort. In fact if

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-19 Thread Brad King
On 08/18/2010 01:01 AM, Andreas Pakulat wrote: > On 17.08.10 14:53:02, Brad King wrote: >> The source file is being compiled in a target that does not >> wait for the header to be generated before compiling. We can >> add a dependency on the target the does provide the header. > > Instead I've ad

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > As we know most (old) open source projects are using makefile, > > is there a tool to convert makefile to CMakeLists.txt ? None I am aware of. Some converters are listed on the Wiki: http://www.cmake.org/Wiki/CMake#Converters_from_other_buildsystems_to_CMake I have some v

[CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Mr Shore
As we know most (old) open source projects are using makefile, is there a tool to convert makefile to CMakeLists.txt ? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] CMake with CTest, cannot submit results to CDash

2010-08-19 Thread David Cole
What version of cmake are you using? Where is CTestConfig.cmake relative to your top level CMakeLists.txt file? (They should be in the same directory.) Is your source tree available for us to try to reproduce the problem? On Thu, Aug 19, 2010 at 5:14 AM, hgc-01...@hkedcity.net wong < emeple...@

[CMake] CMake with CTest, cannot submit results to CDash

2010-08-19 Thread hgc-01...@hkedcity.net wong
Hi, I am using CMake with CTest and CDash on a project. This is the CTestConfig.cmake located under the source directory: set(CTEST_PROJECT_NAME "CDE") set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_DROP_METHOD "http") set(

Re: [CMake] Setting CMAKE_CXX_FLAGS..., CMAKE_C_FLAGS... and CMAKE_C_STANDARD_LIBRARIES_INIT and friends on a per target basis

2010-08-19 Thread J Decker
Two properties DEFINE_SYMBOL - defines a one-shot define that get's -D appropriately COMIPLE_FLAGS - add whatever other flags you want - use quotes around the value SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES DEFINE_SYMBOL # optional - useful for like ${PROJECT_NAME}