Re: [CMake] how to inherit includes from other directories

2011-09-06 Thread Andreas Mohr
Hi, On Tue, Sep 06, 2011 at 04:50:30PM -0400, cmake-requ...@cmake.org wrote: > Date: Tue, 6 Sep 2011 16:50:28 -0400 > From: David Cole > CMake does not track dependencies of header-only "libraries". It only > tracks actual library dependencies given by target_link_libraries > commands. > > You

Re: [CMake] how to inherit includes from other directories

2011-09-06 Thread Raymond Wan
Hi Victor, On Wed, Sep 7, 2011 at 05:39, Victor Yankee wrote: > There may 3 or 4 levels. At the top level, I would very much like to avoid > needing to know all the dependencies at all the lower levels and > exhaustively listing each one in an  'include_directories()' command. > > If utils/B.h n

Re: [CMake] check directory existence in add_custom_command

2011-09-06 Thread Yifei Li
On Sep 6, 2011, at 9:29 PM, David Cole wrote: > On Tue, Sep 6, 2011 at 8:48 PM, Yifei Li wrote: >> >> Hi all, >> >> I'm developing on Mac using Xcode, and I need to create a directory in >> 'Debug': add_custom_command(TARGET target POST_BUILD ${CMAKE_COMMAND} -E >> make_directory ${CMAKE_B

Re: [CMake] check directory existence in add_custom_command

2011-09-06 Thread David Cole
On Tue, Sep 6, 2011 at 8:48 PM, Yifei Li wrote: > > Hi all, > > I'm developing on Mac using Xcode, and I need to create a directory in > 'Debug':  add_custom_command(TARGET target POST_BUILD ${CMAKE_COMMAND} -E > make_directory ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/MyDir) > > How do I test the

[CMake] check directory existence in add_custom_command

2011-09-06 Thread Yifei Li
Hi all, I'm developing on Mac using Xcode, and I need to create a directory in 'Debug': add_custom_command(TARGET target POST_BUILD ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/MyDir) How do I test the existence of 'MyDir' before creating it? Can I put 'if (exis

Re: [CMake] how to inherit includes from other directories

2011-09-06 Thread David Cole
CMake does not track dependencies of header-only "libraries". It only tracks actual library dependencies given by target_link_libraries commands. You will have to come up with your own way to manage your projects interconnections. CMake provides the include_directories command so that you can say

Re: [CMake] how to inherit includes from other directories

2011-09-06 Thread Victor Yankee
Raymond, I appreciate your detailed reply. But apparently include_directories do not propagate UP, only down into subdirectories. The project has many such subdirectories each with its own headers. I think my example was therefore misleading and too simple :( There may 3 or 4 levels. At the top

Re: [CMake] Bug #12189

2011-09-06 Thread David Cole
I don't have a good recommendation for where to document it at the moment. I would say "where UNICODE is documented", but it's not... So, I will not refuse your patch for lack of documentation. :-) Testing is more important anyhow. If I think of / find the right place to actually document this, I

Re: [CMake] Bug #12189

2011-09-06 Thread Meadows, Aaron C.
Sounds good. I believe the test is already in an msvc block. The other is easily added. I'll get on it tomorrow. Any thoughts on where to document it? Sent from my iPhone On Sep 6, 2011, at 3:15 PM, "David Cole" wrote: > Thanks for your work on this Aaron. It looks almost good enough to > me

Re: [CMake] Bug #12189

2011-09-06 Thread David Cole
Thanks for your work on this Aaron. It looks almost good enough to merge as is -- so close! Just two more things: I want to make sure the test is conditional on MSVC (unless your intent is to make this work everywhere?) and tweak the test slightly: I think it should also verify that _SBCS is define

[CMake] question about Eclipse CDT Generators

2011-09-06 Thread cheshirekow
Hi cmake list, I'm using cmake to manage a CUDA project, and I'm generating an eclipse project for development. Since CDT doesn't natively understand the output from the nvidia compiler, I've created a new regex error parser (I'm using eclipse 3.7 but I heard 3.6 has this ability as well), howe

[CMake] 32-bit MinGW and Qt on 64-bit Windows

2011-09-06 Thread Matthew Smith
Hi everyone, I recently installed the 64-bit version of Windows 7 on a computer which had previously been running 32-bit Vista (so, everything got wiped). I develop with Qt so I installed the standard Qt SDK (version 1.1.3 that was released last week; Qt libs version 4.7.4) and downloaded and