[CMake] difficulty in configuring the DRR program in igstk with micron tracker

2011-08-05 Thread swati choudhary
Hi   I am having trouble in making the cmakelist for the program having having two seperate program within it.the frist program is about the digital reconstructiod radiograph of a CT image and next program the about adding a micron tracker to it.The error is about adding some libary function to

Re: [CMake] Setting MIDL Include path via cmake

2011-08-05 Thread David Cole
H... I have some old code where I built an ActiveX control that included an idl file that does this: include_directories("${CMAKE_CURRENT_BINARY_DIR}/\$(IntDir)") include_directories("${CMAKE_CURRENT_BINARY_DIR}/\$(OutDir)") I know it used to work, but I haven't built that project in abou

Re: [CMake] odd cmake/DOS bug/issue with eol

2011-08-05 Thread Biddiscombe, John A.
David I think this works. (bloody awful though) JB SET (CMD $) FILE(WRITE ${CMAKE_BINARY_DIR}/H5Tinit.cmake " EXECUTE_PROCESS( COMMAND \${TRG} OUTPUT_VARIABLE H5TINIT_CONTENTS ) FILE(WRITE \${DST} \"\${H5TINIT_CONTENTS}\") ") ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_BINA

Re: [CMake] odd cmake/DOS bug/issue with eol

2011-08-05 Thread Biddiscombe, John A.
David >Yes, it's probably an intermediate (make, shell?) "interpreting" the output >along the way. does that mean it's a bug? >You can try to add "VERBATIM" to the custom command call and see if that helps. Nope. Same result. I think verbatim just leaves the args untouched rather than the outpu

Re: [CMake] odd cmake/DOS bug/issue with eol

2011-08-05 Thread David Cole
Yes, it's probably an intermediate (make, shell?) "interpreting" the output along the way. You can try to add "VERBATIM" to the custom command call and see if that helps. Or, you could write it as a batch/shell/cmake/other script and have the custom command invoke the script, capture the output i

Re: [CMake] custom commands not run in parallel with Visual Studio (2010) generator

2011-08-05 Thread Thomas Sondergaard
On 12-10-2010 15:55, Bill Hoffman wrote: On 10/12/2010 9:09 AM, Thomas Sondergaard wrote: Hi, I've noticed that Visual Studio doesn't run custom commands added with add_custom_command in parallel. This means running moc and uic is slow on Windows. Is there something that can be done about this?

Re: [CMake] odd cmake/DOS bug/issue with eol

2011-08-05 Thread Biddiscombe, John A.
Forgot to ask : Is it possible that ctest is capturing the std out stream, passing it into a std::iostream and the extra eol is being added there? JB From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Biddiscombe, John A. Sent: 05 August 2011 12:11 To: cmake@cmake.org S

[CMake] odd cmake/DOS bug/issue with eol

2011-08-05 Thread Biddiscombe, John A.
the hdf5 project uses a custom command to generate a C file from a previously compiled exe. it looks like this #- # Setup the H5Detect utility which generates H5Tinit with platform # specific type checks inside #---

Re: [CMake] Conundrum

2011-08-05 Thread Robert Bielik
Robert Bielik skrev 2011-08-05 09:40: Now I use 2.8.4. Has this changed making it not work today ? Ok, if I do: SET(VARIABLE blablabla PARENT_SCOPE) it works. Sorry for the noise :) Regards, /Rob ___ Powered by www.kitware.com Visit other Kitware o

[CMake] Conundrum

2011-08-05 Thread Robert Bielik
Hi all, I have a project where I have several CMakeLists.txt files in subfolders (included in main CMakeLists.txt with subdirs), one of which is an external library inclusion folder. trunk/external In it I have an included Libraries.cmake file (included by the CMakeLists.txt file) which defi