RE: RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller wrote: > Thanks Torsten. I just tested it, and it seems to work with > CMAKE_CURRENT_SOURCE_DIR. Would it be possible to provide me with > your implementation of the AIS_MOC macro as well? Here it is: # Run Qt MOC on a C++ header file. # Arguments: #1

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Jon W
On 8/14/07, Filip Brcic <[EMAIL PROTECTED]> wrote: > Дана уторак 14 август 2007, Jon W је написао(ла): > > > > > Is it possible to have multiple CMakeLists.txt files within the same > > > > > directory? (We have projects that span/share multiple directories, > > > > > and currently all of the vcpro

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Filip Brcic
Дана уторак 14 август 2007, Jon W је написао(ла): > > > > Is it possible to have multiple CMakeLists.txt files within the same > > > > directory? (We have projects that span/share multiple directories, > > > > and currently all of the vcproj files are within a single directory > > > > for easy edit

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Jon W
> > > Is it possible to have multiple CMakeLists.txt files within the same > > > directory? (We have projects that span/share multiple directories, > > > and currently all of the vcproj files are within a single directory > > > for easy editing.) > > > > > > Or, is the suggested route to create a d

AW: AW: [CMake] How to create a solution folder in Visual Studio 2005?

2007-08-14 Thread MS
Hello, I want to add an executable file (debug/release version) to the CTest (ADD_TEST) due to the selected build type (debug/release). I use Visual Studio 2005, so the executable file is written to the debug or release folder corresponding to the build type. I have to query, which build type is s

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Filip Brcic
Дана уторак 14 август 2007, Mike Jackson је написао(ла): > What I tend to do is create a "Resources" directory at the top level   > of my project. Then inside that directory I put "special" cmake files   > that are needed by individual platforms. > > MyProject/ > CMakeLists.txt >          s

Re: [CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Mike Jackson
What I tend to do is create a "Resources" directory at the top level of my project. Then inside that directory I put "special" cmake files that are needed by individual platforms. MyProject/ CMakeLists.txt src/foo.cxx src/apple/apple.cxx Resources/MySpecialAppl

[CMake] multiple CMakeLists.txt files in the same directory

2007-08-14 Thread Jon W
Is it possible to have multiple CMakeLists.txt files within the same directory? (We have projects that span/share multiple directories, and currently all of the vcproj files are within a single directory for easy editing.) Or, is the suggested route to create a directory structure such as, / s

AW: [CMake] How to create a solution folder in Visual Studio 2005?

2007-08-14 Thread MS
Hello, thanks for your reply. It's nearly that I want, but I only want to create custom solution folders in Visual Studio IDE. How and where do I get sources of version 2.4.6? Second question: Is there a way to query the configuration state (debug/release) of Visual Studio IDE using Cmake? I want t

Re: [CMake] string(TOUPPER ...) problems

2007-08-14 Thread ope
Thanks for all answers, >> foreach (package ${requiredPackages}) >> find_package(${package} REQUIRED) >> include_directories(${${package}_INCLUDE_DIRS}) >> string(TOUPPER ${${package}_LIBRARIES} PACKAGE_LIBRARIES) >> link_directories(${PACKAGE_LIBRARIES}) >> target_link_libraries(${app_n

Re: [CMake] string(TOUPPER ...) problems

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 13:38, Alan W. Irwin wrote: ... > I find the most useful (only?) way to debug CMake scripts is to use > MESSAGE(...) to print out intermediate results such as You can also use the --debug-trycompile command line option, which will print out a lot of information with cmak

Re: [CMake] string(TOUPPER ...) problems

2007-08-14 Thread Alan W. Irwin
On 2007-08-14 19:17+0200 ope wrote: Hi, I get the error CMake Error: Error in cmake code at .../CMakeLists.txt:295: STRING no output variable specified by this peace of code: set (requiredPackages ZLIB BZip2 XercesC CURL Log4cxx ) foreach (package ${requiredPackages}) find_package(${

Re: [CMake] string(TOUPPER ...) problems

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 13:17, ope wrote: > Hi, > > I get the error > > CMake Error: Error in cmake code at > .../CMakeLists.txt:295: > STRING no output variable specified > > by this peace of code: > > > set (requiredPackages > ZLIB > BZip2 > XercesC > CURL > Log4cxx > ) > > foreach (p

[CMake] string(TOUPPER ...) problems

2007-08-14 Thread ope
Hi, I get the error CMake Error: Error in cmake code at .../CMakeLists.txt:295: STRING no output variable specified by this peace of code: set (requiredPackages ZLIB BZip2 XercesC CURL Log4cxx ) foreach (package ${requiredPackages}) find_package(${package} REQUIRED) include_dire

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Marie-Christine Vallet
Marie-Christine Vallet wrote: Maik Keller wrote: Hi, but I need to include the generated header file in my derived class file. How do I do this if the generated file is not in one of my source directories? Thanks, Maik Yes, but you don't need to change the location with cmake. I am also

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Ok - I thought about the solution which is already provided by cmake. Probably it is a good moment to change the organization of my own files and directories. I give it a try :-) Now there is only one thing left I worry about: because of all the generated files the build-directory seems to look

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Marie-Christine Vallet
Maik Keller wrote: Hi, but I need to include the generated header file in my derived class file. How do I do this if the generated file is not in one of my source directories? Thanks, Maik Yes, but you don't need to change the location with cmake. I am also working with a qt project and my

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 11:52, you wrote: > Hi, > > but I need to include the generated header file in my derived class file. > How do I do this if the generated file is not in one of my source > directories? You can add CMAKE_CURRENT_BINARY_DIRECTORY as include directory or set the cmake varia

Re: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.ctest.c)

2007-08-14 Thread Brandon Van Every
On 8/14/07, Torsten Martinsen <[EMAIL PROTECTED]> wrote: > Alexandru Ciobanu <> wrote: > > > Hi, Alex! > > > > What I understood from you message is that: > > set ( src a1.c a2.c ) > > add_executable ( cool ${src} ) > > *will* detect when a3.c is added. > > No, it won't. Meaning, there's n

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Hi, but I need to include the generated header file in my derived class file. How do I do this if the generated file is not in one of my source directories? Thanks, Maik Original-Nachricht Datum: Tue, 14 Aug 2007 11:49:10 -0400 Von: Alexander Neundorf <[EMAIL PROTECTED]> An

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 11:31, Maik Keller wrote: > Thanks Torsten. I just tested it, and it seems to work with > CMAKE_CURRENT_SOURCE_DIR. Would it be possible to provide me with your > implementation of the AIS_MOC macro as well? If you are working on a bigger project with more developers, you

Re: RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Thanks Torsten. I just tested it, and it seems to work with CMAKE_CURRENT_SOURCE_DIR. Would it be possible to provide me with your implementation of the AIS_MOC macro as well? Thanks again! Best, Mick Original-Nachricht Datum: Tue, 14 Aug 2007 16:47:14 +0200 Von: Torsten Ma

[CMake] Module to detect SDL_GFX

2007-08-14 Thread Oliver Dole
Hello, You will find as an attachment a dummy cmake module which automates SDL_GFX detection as it is already done for SDL_ttf, SDL_image... This module is in fact a copy and paste with of course modifications of SDL_image module done by Eric Wing. Note that I have only tested it on Linux... So if

Re: [CMake] Feature: optional targets that respect dependencies?

2007-08-14 Thread Christian Convey
On 8/13/07, Hendrik Sattler <[EMAIL PROTECTED]> wrote: > Am Montag 13 August 2007 21:26 schrieb Christian Convey: > > Is the following something that should be added to CMake? > > > > My project has about 70 targets: about 20 libraries and 50 apps. > > > > I'd like to make the building of any parti

RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller wrote: > Thank you Torsten! > If I would exchange CMAKE_CURRENT_BINARY_DIR for > CMAKE_CURRENT_SOURCE_DIR in your macro and if I would also add > CMAKE_CURRENT_SOURCE_DIR to my include directories, then it should > work the way as I need the generated files i

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Thank you Torsten! If I would exchange CMAKE_CURRENT_BINARY_DIR for CMAKE_CURRENT_SOURCE_DIR in your macro and if I would also add CMAKE_CURRENT_SOURCE_DIR to my include directories, then it should work the way as I need the generated files in my source-directory. Or do I miss something? Best,

Re: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c test.c)

2007-08-14 Thread David Cole
On 8/14/07, Alexandru Ciobanu <[EMAIL PROTECTED]> wrote: > What I understood from you message is that: > set ( src a1.c a2.c ) > add_executable ( cool ${src} ) > *will* detect when a3.c is added. While, the following: Yes, that's correct. To add a3.c, you have to modify CMakeLists.txt (or

RE: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.ctest.c)

2007-08-14 Thread Torsten Martinsen
Alexandru Ciobanu <> wrote: > Hi, Alex! > > What I understood from you message is that: > set ( src a1.c a2.c ) > add_executable ( cool ${src} ) > *will* detect when a3.c is added. No, it won't. -Torsten This e-mail and any files sent with it contain information that may be privilege

Re: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c test.c)

2007-08-14 Thread Alexandru Ciobanu
Hi, Alex! What I understood from you message is that: set ( src a1.c a2.c ) add_executable ( cool ${src} ) *will* detect when a3.c is added. While, the following: FILE ( GLOB src *.c ) add_executable ( cool ${src} ) *will not* detect the when a3.c is added. Could you please elaborate

RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller <> wrote: > Hi Alex, > > I prefer to use the class, which is contained in the automatically > generated ui-header file, as a base class for an extended > implementation of the widget. Therefore I have to include the header > of that class. So it would be nice to locate the base class

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Hi Alex, I prefer to use the class, which is contained in the automatically generated ui-header file, as a base class for an extended implementation of the widget. Therefore I have to include the header of that class. So it would be nice to locate the base class in the same directory like the d

Re: [CMake] [CPack] debian binary package

2007-08-14 Thread Mathieu Malaterre
On 8/14/07, Tristan Carel <[EMAIL PROTECTED]> wrote: > I will make more serious test with `advanced' options: > DEBIAN_PACKAGE_DEPENDS, stuff like that... If anyone has any experience with this, he should speak now or hold his peace forever. As far as I understand to automate the process I need t

Re: [CMake] [CPack] debian binary package

2007-08-14 Thread Tristan Carel
On 8/14/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > Hi, > > As some people have already noticed there has been some work done in > CPack to support deb package. After my initial draft Alex finished up > the implementation today. > > I believe the code is ready for more testing now. > >

Re: [CMake] How to create a solution folder in Visual Studio 2005?

2007-08-14 Thread Richard Moreland
Hi, I recently added support for Solution Folders in VS2K5 by making these changes: http://ncogni.to/cmake_solution_folders.zip It creates a solution folder hierarchy that matches your folder hierarchy on disk. See http://ncogni.to/sshot-40.png to see what I mean. If this isn't what you w

[CMake] [CPack] debian binary package

2007-08-14 Thread Mathieu Malaterre
Hi, As some people have already noticed there has been some work done in CPack to support deb package. After my initial draft Alex finished up the implementation today. I believe the code is ready for more testing now. So far I only checked that generated package are compliant with: dpkg -

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 04:57, Maik Keller wrote: > Hello, > > I'd like to use cmake for my upcoming project. I am going to use qt also. > At the moment I use the QT4_WRAP_UI macro in CMake. > > I am wondering about the name and the location of the generated moc and ui > files. Is it possible to

Re: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c test.c)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 07:48, Martin Lutken wrote: > It seems to me that many existing SW libraries, which it would be nice to > have converted to cmake, cannot too easily make use of the fileglobbing > since quite often, there are a few files which you don't want to compile in > order to produc

Re: [CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c test.c)

2007-08-14 Thread Tristan Carel
On 8/14/07, Martin Lutken <[EMAIL PROTECTED]> wrote: > It seems to me that many existing SW libraries, which it would be nice to have > converted to cmake, cannot too easily make use of the fileglobbing since > quite often, there are a few files which you don't want to compile in order > to produce

Re: [CMake] Install directories with new INSTALL command

2007-08-14 Thread Tristan Carel
On 8/14/07, Martin Lutken <[EMAIL PROTECTED]> wrote: > Have just read the http://www.cmake.org/Wiki/CMake:Install_Commands > and the introduction says it's possible to install directories. > I just could not see anywhere in that document how to do that. It is referenced in the official documentati

[CMake] Install directories with new INSTALL command

2007-08-14 Thread Martin Lutken
Have just read the http://www.cmake.org/Wiki/CMake:Install_Commands and the introduction says it's possible to install directories. I just could not see anywhere in that document how to do that. Is there a simple command for copying entire directories recursively ? -Martin L

[CMake] Feature Request: FILE (GLOB files "*.c" EXCEPT main.c test.c)

2007-08-14 Thread Martin Lutken
It seems to me that many existing SW libraries, which it would be nice to have converted to cmake, cannot too easily make use of the fileglobbing since quite often, there are a few files which you don't want to compile in order to produce the library. So a syntax like : FILE (GLOB files "*.c" E

[CMake] How to create a solution folder in Visual Studio 2005?

2007-08-14 Thread MS
Hello, how can I create a solution folder in Visual Studio 2005 using CMake? Thanks, Markus ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Hello, I'd like to use cmake for my upcoming project. I am going to use qt also. At the moment I use the QT4_WRAP_UI macro in CMake. I am wondering about the name and the location of the generated moc and ui files. Is it possible to rename these files (by default ui_...) and to determine anothe