[CMake] INCLUDE_DIRECTORIES per project

2009-04-09 Thread Adrian Boeing
Hi, I would like to have a portable way of having separate include directories for each 'project' in my visual studio 'solution'. ie: common/ dir/file1 dir/file2 share the include directory 'common' , and have seperate 'include1' and 'include2' directories. This would correspond to two 'projects'

[CMake] CMake and iPhone support

2009-04-09 Thread Robert Dailey
Can CMake generate an Xcode project for iPhone SDK development (For both the simulator and device SDKs)? From the looks of it we cannot do that, especially when we use MACOSX_BUNDLE in add_executable(). ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] Generating makefiles without installed CMake

2009-04-09 Thread Ian Monroe
2009/4/9 Ivan Chupahin : > Hi! > > How can i generate the makefiles on a different systems, where no CMake is > installed? It`s like a configure (autoconf utility). Install cmake? :) Ian ___ Powered by www.kitware.com Visit other Kitware open-source p

[CMake] find_package question

2009-04-09 Thread Robert Dailey
I'm reading the guidelines for find package modules here: http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup No where in here do I see any mention of "uppercase" variable names. For example, if my find package is: FindFoo.cmake My return variables are: Foo_LIBRAR

[CMake] Generating makefiles without installed CMake

2009-04-09 Thread Ivan Chupahin
Hi! How can i generate the makefiles on a different systems, where no CMake is installed? It`s like a configure (autoconf utility). ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.

[CMake] Question about Xcode and framework support on Mac

2009-04-09 Thread Robert Dailey
What support cmake has for building an xcode project that allows building targets for multiple SDKs. For example, a single project that allows building for 10.3, 10.4, and 10.5 of the Mac OSX SDK. Or 2.2.0 and 2.0.0 of the iPhoneSDK for both hardware and simulator. _

Re: [CMake] How to determine the current target?

2009-04-09 Thread Richard Wackerbarth
Jeremy, I think that the "problem" is that CMake was never oriented toward the situation that you, and many others, have where it is "very expensive" to have the code under development as a part of a much larger project. When you get to a relatively stable situation, you will appreciate the

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Robert Dailey
On Thu, Apr 9, 2009 at 4:16 PM, Bill Hoffman wrote: > Robert Dailey wrote: > >> On Thu, Apr 9, 2009 at 3:58 PM, Bill Hoffman >> > bill.hoff...@kitware.com>> wrote: >> >>I'm using CMake 2.6.4 RC4. Is it included in this build? >> >> >>No. >> >> >> Thanks, Bill. When can I expect to see

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread John Drescher
On Thu, Apr 9, 2009 at 5:16 PM, Bill Hoffman wrote: > Robert Dailey wrote: >> >> On Thu, Apr 9, 2009 at 3:58 PM, Bill Hoffman > > wrote: >> >>        I'm using CMake 2.6.4 RC4. Is it included in this build? >> >> >>    No. >> >> >> Thanks, Bill. When can I expect t

Re: [CMake] How to determine the current target?

2009-04-09 Thread Jeremy Cowgar
Alexander Neundorf wrote: No, that's wrong in principle. In the cmake files there is no current target, they describe all targets. If you want to do something when some target is built, you have to do this via dependencies, either via add_custom_command() or add_custom_target(). Hm, the r

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Robert Dailey
2009/4/9 Alexander Neundorf > On Thursday 09 April 2009, Robert Dailey wrote: > > I think it would be useful to have a "combo box" type for cache > variables. > > This would allow the user to select from a list of pre-defined values in > > the cmake-gui application. I'm not sure how this would wo

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Bill Hoffman
Robert Dailey wrote: On Thu, Apr 9, 2009 at 3:58 PM, Bill Hoffman > wrote: I'm using CMake 2.6.4 RC4. Is it included in this build? No. Thanks, Bill. When can I expect to see this feature? More specifically, what version of CMake will it be inclu

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Robert Dailey
On Thu, Apr 9, 2009 at 3:58 PM, Bill Hoffman wrote: > I'm using CMake 2.6.4 RC4. Is it included in this build? >> > > No. Thanks, Bill. When can I expect to see this feature? More specifically, what version of CMake will it be included in? ___ Powered

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Bill Hoffman
Robert Dailey wrote: 2009/4/9 Alexander Neundorf > Yes, there is I think, in cmake cvs, but I think this is not yet in a released version, but I'm not sure. Check the documentation for set_property( ... CACHE ...) and for "Properties on Cac

Re: [CMake] iPhone development with CMake (xcode generator)

2009-04-09 Thread Robert Dailey
2009/4/9 Alexander Neundorf > On Thursday 09 April 2009, Robert Dailey wrote: > > 2009/4/9 Alexander Neundorf > ... > > > Does Xcode support this out of the box ? > > > > Support *what* outside of the box? If you're talking about cross > compiling, > > then yes. It just uses GCCE, which itself i

Re: [CMake] How to determine the current target?

2009-04-09 Thread Alexander Neundorf
On Thursday 09 April 2009, Jeremy Cowgar wrote: > When I type: > > $ make abc_xyz > > I'd like to be able to do some tests against that value, "abc_xyz". How > can I do that? For instance: > > IF( ${CURRENT_MAKE_TARGET} MATCHES "abc_xyz" ) > MESSAGE( "Hello World!" ) > ENDIF() > > but I don't kno

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Robert Dailey
2009/4/9 Alexander Neundorf > Yes, there is I think, in cmake cvs, but I think this is not yet in a > released > version, but I'm not sure. > Check the documentation for set_property( ... CACHE ...) and for > "Properties > on Cache Entries". I'm using CMake 2.6.4 RC4. Is it included in this bui

[CMake] How to determine the current target?

2009-04-09 Thread Jeremy Cowgar
When I type: $ make abc_xyz I'd like to be able to do some tests against that value, "abc_xyz". How can I do that? For instance: IF( ${CURRENT_MAKE_TARGET} MATCHES "abc_xyz" ) MESSAGE( "Hello World!" ) ENDIF() but I don't know what the var name is and I seem to be missing it in the docs.

Re: [CMake] "Combo Box" cache variables

2009-04-09 Thread Alexander Neundorf
On Thursday 09 April 2009, Robert Dailey wrote: > I think it would be useful to have a "combo box" type for cache variables. > This would allow the user to select from a list of pre-defined values in > the cmake-gui application. I'm not sure how this would work on other > platforms, but I would be

Re: [CMake] iPhone development with CMake (xcode generator)

2009-04-09 Thread Alexander Neundorf
On Thursday 09 April 2009, Robert Dailey wrote: > 2009/4/9 Alexander Neundorf ... > > Does Xcode support this out of the box ? > > Support *what* outside of the box? If you're talking about cross compiling, > then yes. It just uses GCCE, which itself is a cross compiler. That's interesting. How d

[CMake] "Combo Box" cache variables

2009-04-09 Thread Robert Dailey
I think it would be useful to have a "combo box" type for cache variables. This would allow the user to select from a list of pre-defined values in the cmake-gui application. I'm not sure how this would work on other platforms, but I would be interested in hearing what people think about this. If t

Re: [CMake] iPhone development with CMake (xcode generator)

2009-04-09 Thread Robert Dailey
2009/4/9 Alexander Neundorf > > This is cross compiling, right ? Yes. You compile the ARM code for the device on a different platform. For example, on Windows I'd compile the ARM application and then transfer that binary to the device to be executed. > Does Xcode support this out of the box ?

Re: [CMake] iPhone development with CMake (xcode generator)

2009-04-09 Thread Alexander Neundorf
On Thursday 09 April 2009, Robert Dailey wrote: > For the Boost library, we have compiled it for both the iPhone device and > iPhone simulator. However, I'm not sure how to tell the difference between > the two from CMake when we have xcode as our generator. Perhaps there is a > way I can generate

Re: [CMake] dependency, custom command/target and parallel build.

2009-04-09 Thread Alexander Neundorf
Hi, On Wednesday 08 April 2009, Dhadi S wrote: > Hi, > I'm new to cmake. Here is the version i'm using on a linux box. > > cmake version 2.6-patch 3 > > In my main directory i've the fllowing in my cmakelists.txt file. > assume my main directory to be /home/srini > > SET (XDR_FILES_HOME /home/thi

[CMake] iPhone development with CMake (xcode generator)

2009-04-09 Thread Robert Dailey
For the Boost library, we have compiled it for both the iPhone device and iPhone simulator. However, I'm not sure how to tell the difference between the two from CMake when we have xcode as our generator. Perhaps there is a way I can generate multiple xcode configurations for both the device and th

Re: [CMake] Need advice for unit test structure

2009-04-09 Thread Robert Dailey
On Thu, Apr 9, 2009 at 12:59 PM, Paul Oppenheim (Poppy Linden) < po...@lindenlab.com> wrote: > > I don't have that particular case, but I could support it. With my scenario > each test is its own binary. This is normally messy, but because tests are > built in sub-projects it's not noticeable in th

Re: [CMake] Need advice for unit test structure

2009-04-09 Thread Robert Dailey
On Thu, Apr 9, 2009 at 1:03 PM, Robert Dailey wrote: > On Thu, Apr 9, 2009 at 12:59 PM, Paul Oppenheim (Poppy Linden) < > po...@lindenlab.com> wrote: > >> Robert Dailey wrote: >> >>> Do you have unit tests that require failure to compile in order to be >>> successful? If you do, placing these par

Re: [CMake] Need advice for unit test structure

2009-04-09 Thread Robert Dailey
On Thu, Apr 9, 2009 at 12:59 PM, Paul Oppenheim (Poppy Linden) < po...@lindenlab.com> wrote: > Robert Dailey wrote: > >> Do you have unit tests that require failure to compile in order to be >> successful? If you do, placing these particular unit tests in a project with >> other tests that must co

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Robert Dailey
Sorry, the missing $ was a typo. The problem was that I was doing: include( foo.cmake ) I should have been doing: include( foo ) Sorry for the mixup :) Thanks for the help guys! This was a silly screwup on my part :P On Thu, Apr 9, 2009 at 12:17 PM, David Cole wrote: > You are missing a $ :

Re: [CMake] Need advice for unit test structure

2009-04-09 Thread Paul Oppenheim (Poppy Linden)
Robert Dailey wrote: Do you have unit tests that require failure to compile in order to be successful? If you do, placing these particular unit tests in a project with other tests that must compile to succeed will interrupt the process, depending on the order of compilation. I don't have tha

Re: [CMake] CPack, Null Soft and Component

2009-04-09 Thread Jeremy Cowgar
I read share\cmake-2.6\Modules\CPack.cmake and I found the reference to CPACK_ADD_COMPONENT ... Changing my code to that has enabled components. It seems the wiki is out of date? Thanks for your help. Jeremy ___ Powered by www.kitware.com Visit oth

Re: [CMake] CPack, Null Soft and Component

2009-04-09 Thread Jeremy Cowgar
David Cole wrote: I also added a link to that wiki page on the main CMake Wiki page here: http://www.cmake.org/Wiki/CMake#Tutorials David, Is this still true: "Also, as of the time of this writing, the extensions to CPack required to build component-based installers are only available via

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread David Cole
You are missing a $ : set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ) To prepend, use this construct: set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) HTH, David On Thu, Apr 9, 2009 at 12:56 PM, Robert Dailey wrote: > I want to set a couple of custom directorie

Re: [CMake] CPack, Null Soft and Component

2009-04-09 Thread David Cole
I also added a link to that wiki page on the main CMake Wiki page here: http://www.cmake.org/Wiki/CMake#Tutorials On Thu, Apr 9, 2009 at 1:11 PM, David Cole wrote: > This Wiki page tells you all about how to achieve that. > http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack > > >

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Adolfo Rodríguez
On Thu, Apr 9, 2009 at 6:56 PM, Robert Dailey wrote: > I want to set a couple of custom directories of mine to be searched for > cmake modules when I use include( foo.cmake ). However, I can't seem to get > this to work. My code is basically: > set( CMAKE_MODULE_PATH "{CMAKE_SOURCE_DIR}/cmake" )

Re: [CMake] CPack, Null Soft and Component

2009-04-09 Thread David Cole
This Wiki page tells you all about how to achieve that. http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack HTH, David On Thu, Apr 9, 2009 at 12:09 PM, Jeremy Cowgar wrote: > I was hoping that the COMPONENT parameter to INSTALL would cause the Null > Soft installer to have option

[CMake] CMAKE_MODULE_PATH Question

2009-04-09 Thread Robert Dailey
I want to set a couple of custom directories of mine to be searched for cmake modules when I use include( foo.cmake ). However, I can't seem to get this to work. My code is basically: set( CMAKE_MODULE_PATH "{CMAKE_SOURCE_DIR}/cmake" ) include( foo.cmake ) This, however, does not work. It says it

Re: [CMake] Need advice for unit test structure

2009-04-09 Thread Robert Dailey
On Wed, Apr 8, 2009 at 5:33 PM, Paul Oppenheim (Poppy Linden) < po...@lindenlab.com> wrote: > Robert Dailey wrote: > >> Obviously this creates a lot of clutter in the solution explorer window in >> Visual Studio. Is there a more recommended practice for structuring unit >> tests in CMake? Personal

[CMake] CPack, Null Soft and Component

2009-04-09 Thread Jeremy Cowgar
I was hoping that the COMPONENT parameter to INSTALL would cause the Null Soft installer to have optional items that can be installed. For instance, I have in my CMakeLists.txt file: INSTALL( DIRECTORY source DESTINATION "./" FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ DIREC

Re: [CMake] findBoost says it finds static unit testing libraries, but does not set them

2009-04-09 Thread Andreas Pakulat
On 09.04.09 12:49:09, Jonatan Bijl wrote: > I've compiled the static versions of the boost libraries. When I use > findBoost to detect the unit_test_framework, it gives the following > message: Try to run cmake --trace to find out more... > But the variables Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEB

[CMake] findBoost says it finds static unit testing libraries, but does not set them

2009-04-09 Thread Jonatan Bijl
I've compiled the static versions of the boost libraries. When I use findBoost to detect the unit_test_framework, it gives the following message: Found the following Boost libraries: thread unit_test_framework But the variables Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG and Boost_UNIT_TEST_FRAM