[CMake] GatherProjectFiles macro

2008-02-15 Thread Nico Galoppo
Can anybody tell me what this macro is useful for? (beyond the explanation the wiki page already has) http://www.cmake.org/Wiki/CMakeMacroGatherProjectFiles -- Nico Galoppo :: http://www.ngaloppo.org ___ CMake mailing list CMake@cmake.org http://www.cm

Re: [CMake] parallel builds for ctest

2008-02-15 Thread Alan W. Irwin
On 2008-02-15 18:44-0500 David Cole wrote: One of the VTK dashboards does it by giving a custom MAKECOMMAND to the initial cache:MAKECOMMAND:STRING=/usr/bin/make -i -j 2 See here for the full script: http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080215-0300-Nightly/Notes.html

Re: [CMake] Re: [vtkusers] vtkDICOMImageReader problem

2008-02-15 Thread Bill Hoffman
Sean McBride wrote: On 2/15/08 7:38 PM, Bill Hoffman said: I am not sure what a .nib file is. It's a kind of resource. Usually it contains windows and buttons and the like. See:

Re: [CMake] Re: [vtkusers] vtkDICOMImageReader problem

2008-02-15 Thread Sean McBride
On 2/15/08 7:38 PM, Bill Hoffman said: >I am not sure what a .nib file is. It's a kind of resource. Usually it contains windows and buttons and the like. See:

Re: [CMake] Re: [vtkusers] vtkDICOMImageReader problem

2008-02-15 Thread Bill Hoffman
Mathieu Malaterre wrote: On Fri, Feb 15, 2008 at 10:52 PM, Sean McBride <[EMAIL PROTECTED]> wrote: On 2/15/08 9:42 PM, Mathieu Malaterre said: >As a side note, you understand that all of that mess could have been >avoided if you were using cmake to generate the XCode project for you, >right

[CMake] External dependencies (static library)

2008-02-15 Thread Emmanuel Blot
Hi All, I'm using CMake to cross-compile projects for eCos on ARM9 targets (hosts: Windows, Linux & Mac OS X). Some CMake projects are unit tests (ELF executable files), which need to be linked against some static libraries (lib.a). I'd like to add an extra dependency so that the ELF exe fi

Re: [CMake] parallel builds for ctest

2008-02-15 Thread David Cole
One of the VTK dashboards does it by giving a custom MAKECOMMAND to the initial cache:MAKECOMMAND:STRING=/usr/bin/make -i -j 2 See here for the full script: http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080215-0300-Nightly/Notes.html HTH, David On 2/15/08, James Bigler

[CMake] parallel builds for ctest

2008-02-15 Thread James Bigler
Is it possible to get ctest to do parallel builds on systems that support it? I'm using a configuration file that looks something like this: # Where the source code lives SET (CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/..") SET (CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build-ctes

[CMake] Re: [vtkusers] vtkDICOMImageReader problem

2008-02-15 Thread Mathieu Malaterre
On Fri, Feb 15, 2008 at 10:52 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > On 2/15/08 9:42 PM, Mathieu Malaterre said: > > >As a side note, you understand that all of that mess could have been > >avoided if you were using cmake to generate the XCode project for you, > >right ? > > Not necessar

Re: [CMake] preprocessor def

2008-02-15 Thread Harsha Sri-Narayana
Thanks everyone. Both of these work. 1) ADD_DEFINITIONS(-DUSE_GLEW) 2) SET_TARGET_PROPERTIES(rtf PROPERTIES LINKER_LANGUAGE CXX COMPILE_FLAGS "-DUSE_GLEW" ) -Harsha Alan W. Irwin wrote: On 2008-02-15 21:31- Harsha Sri-Narayana wrote: I have this code in a cpp file #ifdef USE_GLEW #in

Re: [CMake] preprocessor def

2008-02-15 Thread Alan W. Irwin
On 2008-02-15 21:31- Harsha Sri-Narayana wrote: I have this code in a cpp file #ifdef USE_GLEW #include #endif I have this in a cmakelists.txt file: SET_TARGET_PROPERTIES(rtf PROPERTIES LINKER_LANGUAGE CXX COMPILE_FLAGS "USE_GLEW" ) This doesn't work, couldn't anyone show me what I've

Re: [CMake] preprocessor def

2008-02-15 Thread Eric Noulard
2008/2/15, Harsha Sri-Narayana <[EMAIL PROTECTED]>: > I have this code in a cpp file > > #ifdef USE_GLEW > #include > #endif > > > I have this in a cmakelists.txt file: > > SET_TARGET_PROPERTIES(rtf PROPERTIES > LINKER_LANGUAGE CXX > COMPILE_FLAGS "USE_GLEW" > ) Could you try COMPILE_FLA

[CMake] preprocessor def

2008-02-15 Thread Harsha Sri-Narayana
I have this code in a cpp file #ifdef USE_GLEW #include #endif I have this in a cmakelists.txt file: SET_TARGET_PROPERTIES(rtf PROPERTIES LINKER_LANGUAGE CXX COMPILE_FLAGS "USE_GLEW" ) This doesn't work, couldn't anyone show me what I've done wrong? In the documentation it says, "The COMP

[CMake] Re: [vtkusers] vtkDICOMImageReader problem

2008-02-15 Thread Mathieu Malaterre
[Sorry for the top-post] This is definitely more of a cmake question (see CC). Basically your project is something like this in CMake: CMakeLists.txt --- FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) SET(SRC my.cxx) ADD_EXECUTABLE(my ${SRC} vtkIO) # libvtkDICOMParser will get properly

Re: [CMake] CMake Feature list

2008-02-15 Thread Brandon Van Every
On Fri, Feb 15, 2008 at 12:32 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Brandon Van Every wrote: > > On Fri, Feb 15, 2008 at 9:59 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > >> http://www.cmake.org/Wiki/Really_Cool_CMake_Features > > > > I think the feature list is already adequate as a

Re: [CMake] can't build CMake CVS

2008-02-15 Thread Brandon Van Every
On Fri, Feb 15, 2008 at 12:02 PM, David Cole <[EMAIL PROTECTED]> wrote: > No. It could be a "free VC8 without the Windows SDK" issue, though. I have a Windows SDK... hm, wait! On Vista I have *two* SDKs, the current one and an older one for Windows Server 2003 R2. I was using the latter to build

Re: [CMake] CMake Feature list

2008-02-15 Thread Bill Hoffman
Brandon Van Every wrote: On Fri, Feb 15, 2008 at 9:59 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: http://www.cmake.org/Wiki/Really_Cool_CMake_Features This is really important (good idea Bill) so I linked it as the 1st item under "Primary Resources." In other words, almost the very 1st thing

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Hendrik Sattler
Am Freitag 15 Februar 2008 schrieb Bill Hoffman: > Hendrik Sattler wrote: > > Am Freitag 15 Februar 2008 schrieb Bill Hoffman: > >> Bill Hoffman wrote: > >>> Hendrik Sattler wrote: > Is the start menu entry in the Platform SDK menu for registering with > Visual Studio only available when

Re: [CMake] CMake Feature list

2008-02-15 Thread Brandon Van Every
On Fri, Feb 15, 2008 at 9:59 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > http://www.cmake.org/Wiki/Really_Cool_CMake_Features This is really important (good idea Bill) so I linked it as the 1st item under "Primary Resources." In other words, almost the very 1st thing you'd look at on the wik

Re: [CMake] can't build CMake CVS

2008-02-15 Thread David Cole
No. It could be a "free VC8 without the Windows SDK" issue, though. Have you built anything else that would require linking in the Windows SDK libraries? According to MSDN documentation for the _bstr_t class: http://msdn2.microsoft.com/en-us/library/zthfhkd6(VS.80).aspx *Header:* comut

Re: [CMake] can't build CMake CVS

2008-02-15 Thread Brandon Van Every
On Fri, Feb 15, 2008 at 11:04 AM, David Cole <[EMAIL PROTECTED]> wrote: > If you comment out (or remove) the line: > > #define HAVE_COMDEF_H > > ...from the top of CMake/Source/cmCallVisualStudioMacro.cxx, does the > problem go away? Yes, that cured it. Is this a Vista-specific issue? Cheers, B

Re: [CMake] CMake Feature list

2008-02-15 Thread Sylvain Benner
Guys, guys, read the list and add it yourselves! It's a wiki. We don't need discussion here. ;-) My mistake, it should have been sent to Bill only. --Sylvain ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] can't build CMake CVS

2008-02-15 Thread David Cole
If you comment out (or remove) the line: #define HAVE_COMDEF_H ...from the top of CMake/Source/cmCallVisualStudioMacro.cxx, does the problem go away? On 2/15/08, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > Windows Vista, with the free VC8 compiler, using CMake 2.4.8 as the > build tool, tr

Re: [CMake] CMake Feature list

2008-02-15 Thread Sylvain Benner
I am sure I have left stuff out. Please edit the wiki or send me an email with any cool features that you think are missing from the list. The "script ability" of CMake may be worth to be added to the list of cool features. Something like "complete scripting language". It's a feature I'm

Re: [CMake] CMake Feature list

2008-02-15 Thread Brandon Van Every
On Fri, Feb 15, 2008 at 10:36 AM, Sylvain Benner <[EMAIL PROTECTED]> wrote: > > > > > I am sure I have left stuff out. Please edit the wiki or send me an > > email with any cool features that you think are missing from the list. > > > The "script ability" of CMake may be worth to be added to

AW: [CMake] CMake Feature list

2008-02-15 Thread Gerhard Grimm
The coolest feature in my opinion is the macro capability of the CMake language, allowing to design very complex and powerful build systems with incredible flexibility! - Gerhard -Ursprüngliche Nachricht- Gesendet: Freitag, 15. Februar 2008 16:36 An: Bill Hoffman Cc: cmake Betreff: Re: [

[CMake] can't build CMake CVS

2008-02-15 Thread Brandon Van Every
Windows Vista, with the free VC8 compiler, using CMake 2.4.8 as the build tool, trying to build CMake CVS I get: error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "public: __thi

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Bill Hoffman
Mehdi Rabah wrote: perfect! that's the information I needed. I already had the sdk installed, but not properly configured to work with vs express. (sorry for the trouble, but I wasn't able to find the faq info with google). Google search with "LINK : fatal error LNK1104 CMake" and it shows up o

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Bill Hoffman
Hendrik Sattler wrote: Am Freitag 15 Februar 2008 schrieb Bill Hoffman: Bill Hoffman wrote: Hendrik Sattler wrote: Is the start menu entry in the Platform SDK menu for registering with Visual Studio only available when a full Visual Studio is installed? AFAIK the latest SDKs always have them.

[CMake] CMake Feature list

2008-02-15 Thread Bill Hoffman
Hi all, I am trying to create a full list of features for CMake. I have started a list on the wiki here: http://www.cmake.org/Wiki/Really_Cool_CMake_Features I am sure I have left stuff out. Please edit the wiki or send me an email with any cool features that you think are missing from the

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Hendrik Sattler
Am Freitag 15 Februar 2008 schrieb Bill Hoffman: > Bill Hoffman wrote: > > Hendrik Sattler wrote: > >> Is the start menu entry in the Platform SDK menu for registering with > >> Visual Studio only available when a full Visual Studio is installed? > >> AFAIK the latest SDKs always have them. > > Or

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Mehdi Rabah
perfect! that's the information I needed. I already had the sdk installed, but not properly configured to work with vs express. (sorry for the trouble, but I wasn't able to find the faq info with google). On Fri, Feb 15, 2008 at 3:34 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Bill Hoffman wrot

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Bill Hoffman
Bill Hoffman wrote: Hendrik Sattler wrote: Is the start menu entry in the Platform SDK menu for registering with Visual Studio only available when a full Visual Studio is installed? AFAIK the latest SDKs always have them. Or better yet, check the cmake faq: http://www.cmake.org/Wiki/CMak

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Bill Hoffman
Hendrik Sattler wrote: Is the start menu entry in the Platform SDK menu for registering with Visual Studio only available when a full Visual Studio is installed? AFAIK the latest SDKs always have them. Follow these instructions: http://msdn2.microsoft.com/en-us/express/aa700755.aspx -Bill

RE: [CMake] @MY_VAR@ are replaced by empty string !

2008-02-15 Thread Martin Lütken
-Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: Thu 2/14/2008 2:45 PM To: Martin Lütken; cmake Subject: Re: [CMake] @MY_VAR@ are replaced by empty string ! Martin Lütken wrote: > > > > > > -Original Message- > From: Bill Hoffman [mailto:[EMAIL PROTE

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Hendrik Sattler
Am Freitag 15 Februar 2008 schrieb Bill Hoffman: > Mehdi Rabah wrote: > > Hi everyone, > > > > I have a (simple) problem configuring cmake to generate visual studio > > project. > > > > I have configured all variables needed by the microsoft compiler to > > compile a simple Hello World program from

Re: [CMake] Visual Studio Express 2005

2008-02-15 Thread Bill Hoffman
Mehdi Rabah wrote: Hi everyone, I have a (simple) problem configuring cmake to generate visual studio project. I have configured all variables needed by the microsoft compiler to compile a simple Hello World program from the command line. But cmake can't make the compiler compile the simple

[CMake] Visual Studio Express 2005

2008-02-15 Thread Mehdi Rabah
Hi everyone, I have a (simple) problem configuring cmake to generate visual studio project. I have configured all variables needed by the microsoft compiler to compile a simple Hello World program from the command line. But cmake can't make the compiler compile the simple test program. "c:/progr

[CMake] Out of tree source code inclusion

2008-02-15 Thread tunca tunc
Hi, I need to include cpp files out of tree to build test codes. The source file directory structure is src\ test\ \ [Source Codes and CMakeLists.txt] under this directory To add source code files under i adde