[CMake] cmake, VS2005 and manifests

2009-08-06 Thread Aleksander Demko
Is there someway to programmatically, in the CMakeLists.txt file for my project to turn off the embedding of manifest files? i.e. I'd like to have separate manifest files. In the gui this is done under project properties -> configuration properties -> manifest tool -> input and ouput -> embed mani

Re: [CMake] Operating system decisions

2009-08-06 Thread Alexander Neundorf
On Thursday 06 August 2009, Tyler Roscoe wrote: > On Thu, Aug 06, 2009 at 12:42:44PM -0700, ML wrote: > > Thanks Tyler, is this avail in 2.6 (WINDOWS rather than using WIN32) > > or in a future release? > > It's available if you are working with CMake at my company :). Otherwise > you can do it you

Re: [CMake] Can cmake do configure tests?

2009-08-06 Thread Alexander Neundorf
On Thursday 06 August 2009, Michael Jackson wrote: > Here is some snippets from a project that I use: (hdf5) > > # Include all the necessary files for macros > INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) > INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) > INCLUDE (${CMAKE_ROOT}

Re: [CMake] Linking against OS X Frameworks

2009-08-06 Thread ML
Hi Mike, Also is that a linker error or a compile error? Looks like a compile error. You probably have to include the location of the Carbon Headers. What is the best way to do that exactly? I am in cluding Carbon/ Carbon.h in my source files. but I guess CMAKE needs to know where to fin

Re: [CMake] Linking against OS X Frameworks

2009-08-06 Thread Michael Jackson
_ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Aug 6, 2009, at 3:52 PM, ML wrote: Hey Mike, Also is tha

Re: [CMake] Linking against OS X Frameworks

2009-08-06 Thread Michael Jackson
Not sure if this helps but from the FindQt4.cmake file there is the following: IF(Q_WS_MAC) SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} "- framework Carbon") # Qt 4.0, 4.1, 4.2 use QuickTime IF(QT_VERSION_MINOR LESS 3) SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI

Re: [CMake] Operating system decisions

2009-08-06 Thread Tyler Roscoe
On Thu, Aug 06, 2009 at 12:42:44PM -0700, ML wrote: > Thanks Tyler, is this avail in 2.6 (WINDOWS rather than using WIN32) > or in a future release? It's available if you are working with CMake at my company :). Otherwise you can do it yourself easily: # We want to use WINDOWS instead of th

Re: [CMake] Operating system decisions

2009-08-06 Thread ML
Tyler, Something like: if (OSX) if (Win32) if(Linux) http://www.cmake.org/Wiki/CMake_Useful_Variables/Logging_Useful_Variables Btw, we're switching to using an extra variable WINDOWS that we define as having the same value as WIN32. We got a lot of questions from developers wondering if WI

[CMake] Linking against OS X Frameworks

2009-08-06 Thread ML
HI All, I am continuing my learning curve. Consider this block: if (APPLE) SET(MOREFILESX_HEADERS source/thirdparty/OSX/MoreFilesX/MoreFilesX.h ) SET(MOREFILESX_SOURCES source/thirdparty/OSX

[CMake] Generating Qt4 External Binary Resources

2009-08-06 Thread Ruben Vandamme
Hi, I'm trying to generate a qt4 *external* binary resource file (http://doc.trolltech.com/4.5/resources.html). However the macro QT4_ADD_RESOURCES only talks about "create code". macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...) create code from a list of Qt resource files.

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Marcus D. Hanwell
James Bigler wrote: > On Thu, Aug 6, 2009 at 12:10 PM, Bill Hoffman > mailto:bill.hoff...@kitware.com>> wrote: > > James Bigler wrote: > > > Well, I was using VS 2005 64 bit with SP 1. I wonder if there > is a similar bug or if there is something else going wrong > such

Re: [CMake] Operating system decisions

2009-08-06 Thread Tyler Roscoe
On Thu, Aug 06, 2009 at 11:58:53AM -0700, ML wrote: > I am looking at the 2.6 documentation for a property or variable that > I can use platform depending. I dont see one, so I am sure that I am > looking int the wrong place. > > Something like: > > if (OSX) > > if (Win32) > > if(Linux) ht

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread James Bigler
On Thu, Aug 6, 2009 at 12:10 PM, Bill Hoffman wrote: > James Bigler wrote: > > >> Well, I was using VS 2005 64 bit with SP 1. I wonder if there is a >> similar bug or if there is something else going wrong such as what Marcus >> Hanwall described. >> >> > I am not sure what your issue is, but I k

[CMake] Operating system decisions

2009-08-06 Thread ML
Hi All, I am looking at the 2.6 documentation for a property or variable that I can use platform depending. I dont see one, so I am sure that I am looking int the wrong place. Something like: if (OSX) if (Win32) if(Linux) etc. I tried googling for 'cmake platform check' and did not fin

Re: [CMake] PCH

2009-08-06 Thread John Drescher
On Thu, Aug 6, 2009 at 2:34 PM, ML wrote: > Hi All, > > Can CMAKE use Pre-compiled headers now? I thought that I recalled their > being an issue at some point, not sure. > > Can anyone shed some light? > I do this for my Visual Studio builds with a macro. #

[CMake] PCH

2009-08-06 Thread ML
Hi All, Can CMAKE use Pre-compiled headers now? I thought that I recalled their being an issue at some point, not sure. Can anyone shed some light? -Jason ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitw

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Marcus D. Hanwell
James Bigler wrote: > I've just been bitten hard by this issue (many hours of frustration > while attempting to run a demo application that should have "Just > Worked" (TM) ). > > According to this page: > > http://support.microsoft.com/kb/326922 > > > "You should install these versions of the CRT

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Bill Hoffman
James Bigler wrote: Well, I was using VS 2005 64 bit with SP 1. I wonder if there is a similar bug or if there is something else going wrong such as what Marcus Hanwall described. I am not sure what your issue is, but I know I have done this many times... -Bill ___

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Clinton Stimpson
Bill Hoffman wrote: James Bigler wrote: I've just been bitten hard by this issue (many hours of frustration while attempting to run a demo application that should have "Just Worked" (TM) ). According to this page: http://support.microsoft.com/kb/326922 "You should install these versions of

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread James Bigler
On Thu, Aug 6, 2009 at 11:55 AM, Bill Hoffman wrote: > James Bigler wrote: > >> I've just been bitten hard by this issue (many hours of frustration while >> attempting to run a demo application that should have "Just Worked" (TM) ). >> >> According to this page: >> >> http://support.microsoft.com/

Re: [CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread Bill Hoffman
James Bigler wrote: I've just been bitten hard by this issue (many hours of frustration while attempting to run a demo application that should have "Just Worked" (TM) ). According to this page: http://support.microsoft.com/kb/326922 "You should install these versions of the CRT on target co

[CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

2009-08-06 Thread James Bigler
I've just been bitten hard by this issue (many hours of frustration while attempting to run a demo application that should have "Just Worked" (TM) ). According to this page: http://support.microsoft.com/kb/326922 "You should install these versions of the CRT on target computers by running the V

Re: [CMake] Internal vs system version of a library

2009-08-06 Thread Antonio Valentino
Il giorno Thu, 6 Aug 2009 08:49:27 -0700 Tyler Roscoe ha scritto: > On Thu, Aug 06, 2009 at 12:43:05PM +0200, Antonio Valentino wrote: > > The unset command seems to be undocumented in cmake 2.6.2 (the one > > packaged in ubuntu jaunty). > > Is it new? > > Newer than 2.6.2, yes. Not sure if it's

Re: [CMake] Tricky problem with variable, whitespace, quotes and shell

2009-08-06 Thread Tyler Roscoe
On Thu, Aug 06, 2009 at 08:04:37PM +0900, Asmodehn Shade wrote: > there fore I use the trick here which gives me the correct solution : > http://www.vtk.org/Wiki/CMake_FAQ#How_to_convert_a_semicolon_separated_list_to_a_whitespace_separated_string.3F > > So now SPACES_SOURCES holds : "filea.c fileb

Re: [CMake] Internal vs system version of a library

2009-08-06 Thread Tyler Roscoe
On Thu, Aug 06, 2009 at 12:43:05PM +0200, Antonio Valentino wrote: > The unset command seems to be undocumented in cmake 2.6.2 (the one > packaged in ubuntu jaunty). > Is it new? Newer than 2.6.2, yes. Not sure if it's different for cache variables but you can use set(myVar) in 2.6.2 to get the sa

[CMake] Bug#463715: Some update

2009-08-06 Thread Mathieu Malaterre
See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538280 -- Mathieu ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Stephen Roderick
On Aug 6, 2009, at 10:23 , Clinton Stimpson wrote: On 08/06/2009 06:49 AM, Mathieu Malaterre wrote: On Thu, Aug 6, 2009 at 2:46 PM, Mathieu Malaterre wrote: On Thu, Aug 6, 2009 at 2:27 PM, Stephen Roderick wrote: On Aug 6, 2009, at 06:02 , Mathieu Malaterre wrote: On Wed, Aug 5, 2009 a

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Clinton Stimpson
On 08/06/2009 06:49 AM, Mathieu Malaterre wrote: On Thu, Aug 6, 2009 at 2:46 PM, Mathieu Malaterre wrote: On Thu, Aug 6, 2009 at 2:27 PM, Stephen Roderick wrote: On Aug 6, 2009, at 06:02 , Mathieu Malaterre wrote: On Wed, Aug 5, 2009 at 6:55 PM, Stephen Roderick wrote:

Re: [CMake] Can cmake do configure tests?

2009-08-06 Thread Michael Jackson
Here is some snippets from a project that I use: (hdf5) # Include all the necessary files for macros INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake) INCLUDE (${CMAKE_ROOT}/Mo

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Mathieu Malaterre
On Thu, Aug 6, 2009 at 2:46 PM, Mathieu Malaterre wrote: > On Thu, Aug 6, 2009 at 2:27 PM, Stephen Roderick wrote: >> On Aug 6, 2009, at 06:02 , Mathieu Malaterre wrote: >> >>> On Wed, Aug 5, 2009 at 6:55 PM, Stephen Roderick wrote: The existing UseSWIG.cmake file creates a MODULE and not

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Mathieu Malaterre
On Thu, Aug 6, 2009 at 2:27 PM, Stephen Roderick wrote: > On Aug 6, 2009, at 06:02 , Mathieu Malaterre wrote: > >> On Wed, Aug 5, 2009 at 6:55 PM, Stephen Roderick wrote: >>> >>> The existing UseSWIG.cmake file creates a MODULE and not a SHARED >>> library. >>> The module is unuseable by any progra

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Stephen Roderick
On Aug 6, 2009, at 06:02 , Mathieu Malaterre wrote: On Wed, Aug 5, 2009 at 6:55 PM, Stephen Roderick wrote: The existing UseSWIG.cmake file creates a MODULE and not a SHARED library. The module is unuseable by any program trying to load dynamic libraries (eg wrapped Java). The attached patc

Re: [CMake] Setting up a PGO sequence

2009-08-06 Thread Martin Apel
Hi, I think you should be able to do something like the following: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS}) # For CXX probably as well ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" ) ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" ) ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" ) set(CMAKE_C_FLAG

Re: [CMake] Tricky problem with variable, whitespace, quotes and shell

2009-08-06 Thread Asmodehn Shade
Ah I forgot to say also... I cant put the whole command line in quotes, otherwise the add_custom_target tells me "/bin/sh : command not found " " so I need to separate the command executable and its parameter, but then the command gets parameters with quotes and fails... --- AlexV ... puzzled...

[CMake] Tricky problem with variable, whitespace, quotes and shell

2009-08-06 Thread Asmodehn Shade
Hi everyone, Sorry if this has been answered before, but google doesnt give me anything useful... Lets say I have a list of source files : SOURCES holds : filea.c;fileb.c I want to pass them to an external program ( Astyle for example ) so I need to have a whitespace separated list there fore I

[CMake] cpack, rebrand

2009-08-06 Thread schoappied
Hi, I want to rebrand a package. It would be nice if I could do that without changing a lot of code, so I was wondering if I rename the *.exe binary and point the installer and menu item on Windows to that renamed binary using cpack? Any suggestions, tips? Thanks in advance, \d __

Re: [CMake] Internal vs system version of a library

2009-08-06 Thread Antonio Valentino
Il giorno Thu, 06 Aug 2009 12:04:06 +0200 Hendrik Sattler ha scritto: > Zitat von Antonio Valentino : > > I would like allow the user to choose whenever to use the system > > version of a library or the developer provided one. > > > > In the code snippet below the library is FFTW and its source >

Re: [CMake] Internal vs system version of a library

2009-08-06 Thread Hendrik Sattler
Zitat von Antonio Valentino : I would like allow the user to choose whenever to use the system version of a library or the developer provided one. In the code snippet below the library is FFTW and its source archive is bundled together with the project source in the COTS/FFTW sub-folder. The pr

Re: [CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-06 Thread Mathieu Malaterre
On Wed, Aug 5, 2009 at 6:55 PM, Stephen Roderick wrote: > The existing UseSWIG.cmake file creates a MODULE and not a SHARED library. > The module is unuseable by any program trying to load dynamic libraries (eg > wrapped Java). The attached patch fixes this problem for our situations. > Demonstrate

[CMake] Internal vs system version of a library

2009-08-06 Thread Antonio Valentino
Hi list, I would like allow the user to choose whenever to use the system version of a library or the developer provided one. In the code snippet below the library is FFTW and its source archive is bundled together with the project source in the COTS/FFTW sub-folder. The problem is how to reset t

Re: [CMake] Can cmake do configure tests?

2009-08-06 Thread Michael Wild
On 6. Aug, 2009, at 3:03, Joseph Garvin wrote: One of the cool features of autotools is configure tests -- actually invoking the compiler on a small sample program and seeing if it's successful. Does CMake do this or do you have to depend on #ifdef SOME_PLATFORM blocks to enable/disable feature