Re: [CMake] Small, realistic Cpack example

2008-10-01 Thread Michael Jackson
http://www.cmake.org/Wiki/BuildingOSXApplications Done. and I updated the project also. it can now be found also on the wiki site: http://www.cmake.org/Wiki/images/e/e3/QTTest.zip The updates include changes so that the bundle only gets completed during a installation process. I welcome

Re: [CMake] Bug? Setting properties on non existing source files gives an error

2008-10-01 Thread Jonas Bähr
Am 30.09.2008 um 21:39 schrieb Timenkov Yuri: On Tue, Sep 30, 2008 at 3:45 PM, Jonas Bähr [EMAIL PROTECTED] wrote: Hi, I'm using a macro [1] iterating over a list of source files and setting a COMPILE_FLAGS property. The problem is that there are some files in the list which are

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR for modules

2008-10-01 Thread James Bigler
I filed a bug about this (http://public.kitware.com/Bug/view.php?id=7757), and Bill told me about CMAKE_CURRENT_LIST_FILE. CMAKE_CURRENT_LIST_FILE Full path to the listfile currently being processed. As CMake processes the listfiles in your project this

[CMake] Using multiple config names in a single project

2008-10-01 Thread Karl Wallner
Hi, I'm using cmake in a project to build different configurations (debug-static, debug-shared, release-...) of a library out of the same sources. All these built libraries have to be in a single project as cpack is used to make binary packages for windows and linux. In case of the windows

Re: [CMake] win32 wrongly set on linux when using subdirectories

2008-10-01 Thread Bill Hoffman
Stephen Sinclair wrote: Hi, This is strange. I'm using CMake on Fedora Core 9. I have a few .c files that should only be included when my project is compiled on Windows, but for some reason it was including them on Linux. I paired this down to a minimal example that goes wrong. It seems that

Re: [CMake] win32 wrongly set on linux when using subdirectories

2008-10-01 Thread Stephen Sinclair
On Wed, Oct 1, 2008 at 5:33 PM, Bill Hoffman [EMAIL PROTECTED] wrote: Stephen Sinclair wrote: Hi, This is strange. I'm using CMake on Fedora Core 9. I have a few .c files that should only be included when my project is compiled on Windows, but for some reason it was including them on

Re: [CMake] Query about FindXXX files

2008-10-01 Thread Alexander Neundorf
On Wednesday 17 September 2008, Leo Breebaart wrote: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If false, do not try to use TIFF. # also

Re: [CMake] Cross compiling toolchain: Substitution in OBJECTS variable

2008-10-01 Thread Alexander Neundorf
On Wednesday 17 September 2008, Simon Barner wrote: Dear CMake users list, I am currently development a CMake cross build platform definition to support Microchips C18 C compiler[1]. I encountered the problem that C18's linker does not like '/' as path delimiter which is why I need some

[CMake] Find function that may need libraries?

2008-10-01 Thread Matthew Woehlke
Is there a standard way to find the library needed for a particular function, when possibly none is needed? For example, gethostbyname might be provided in libc, libnsl, libsocket, etc. on various platforms. I've found myself a couple times now writing a macro to do this, but I wonder if

Re: [CMake] using a generator with unknown output

2008-10-01 Thread Alexander Neundorf
On Thursday 18 September 2008, [EMAIL PROTECTED] wrote: Hi y'all, I'm a rather new cmake user and I've got a hen egg problem: My generator takes an inputfile and a directory, it creates output files in that directory. Number and names of generated files depend on the contents of the

Re: [CMake] nmake, automoc and cmake problem

2008-10-01 Thread Alexander Neundorf
On Friday 19 September 2008, Boudewijn Rempt wrote: On Fri, 19 Sep 2008, Boudewijn Rempt wrote: Hi, We're having a little problem when trying to compile a Qt-based library (libiris) using nmake. We're using cmake 2.6 and automoc, but running nmake results in:

Re: [CMake] how do I test if a library target is static or shared?

2008-10-01 Thread Alexander Neundorf
On Monday 22 September 2008, Aleksander Demko wrote: How do I test if a library target is static or shared? I've checked the target properties and commands and nothing sticks out. Try get_target_property(targetType myTarget TYPE) Ooops, seems this is undocumented... Will fix that. Alex

Re: [CMake] the switch to subversion?

2008-10-01 Thread Alexander Neundorf
On Tuesday 23 September 2008, E. Wing wrote: Given the fact that you know Bryan O'Sullivan, you should be considering Mercurial. It also has better Windows support and good docs (hg book) Alex ___ CMake mailing list CMake@cmake.org

Re: [CMake] IF(COMMAND) to test INSTALL(EXPORT)

2008-10-01 Thread Alexander Neundorf
On Tuesday 30 September 2008, Mathieu Malaterre wrote: Hi there, I would like to know if the target system support the INSTALL(EXPORT) signature. As far as I understand IF(COMMAND) only check the command but not the signature, right ? Yes. You could check for version = 2.6.0. Or if

Re: [CMake] CTest/test target customisation

2008-10-01 Thread Alexander Neundorf
On Wednesday 01 October 2008, Mike Arthur wrote: On Tuesday 30 September 2008 23:18:57 Alexander Neundorf wrote: So you want it to run your tests added using add_test(). This is what it does. make test alone doesn't update from svn or submit build logs. I guess you mean you want to modify

Re: [CMake] Automated CPACK_STRIP_FILES

2008-10-01 Thread Alexander Neundorf
On Friday 26 September 2008, Mathieu Malaterre wrote: 'lo, did anyone wrote a small cmake script to harvest all found executables and pass that list to CPACK_STRIP_FILES ? You don't have to. With cmake 2.6, set CPACK_STRIP_FILES to TRUE and it will do that automatically. Alex

[CMake] Finding a library on Windows

2008-10-01 Thread Moritz Moeller
Sorry for the n00b question but I'm totally new to CMake. :) I wrote a module to add a package. This works great for the include path, but the lib can't be found. Here is the top part of my find module: IF(3DELIGHT_INCLUDE_DIR AND 3DELIGHT_LIBRARY) SET(3DELIGHT_FIND_QUIETLY TRUE)

Re: [CMake] Finding a library on Windows

2008-10-01 Thread Bill Hoffman
Moritz Moeller wrote: FIND_LIBRARY(3DELIGHT_LIBRARY NAMES 3Delight PATH $ENV{DELIGHT}/lib) MESSAGE(STATUS ${3DELIGHT_LIBRARY}) It is PATHS not PATH. You told it to look for a library that might be named 3Delight, PATH or C:/Program Files/3Delight/lib. -Bill

Re: [CMake] Finding a library on Windows

2008-10-01 Thread Moritz Moeller
Bill Hoffman wrote: Moritz Moeller wrote: FIND_LIBRARY(3DELIGHT_LIBRARY NAMES 3Delight PATH $ENV{DELIGHT}/lib) MESSAGE(STATUS ${3DELIGHT_LIBRARY}) It is PATHS not PATH. You told it to look for a library that might be named 3Delight, PATH or C:/Program Files/3Delight/lib. That was it.