[CMake] SDL troubles on Mac OS X

2009-12-15 Thread Werner Smekal
Hi, I'm building an application on Mac OS X and link the SDL libraries into the app. Basically it all works fine (app runs, etc.), but if I want to use the BundleUtilities to fix/include the SDL framework into the app bundle I encounter errors. Problem is, that the references to the SDL

Re: [CMake] How can I add gprof profiler to my CMakeLists.txt?

2009-12-15 Thread Marcel Loose
On Tue, 2009-12-15 at 12:08 +0800, Water Lin wrote: I want to use gprof to analyze my code. So I try to embed the -pg paramter for g++ in my CMakeLists.txt file. But after I embeded the -pg to my CMakeLists.txt like this: - add_definitions(-pg -march=pentium4 -msse3 -g) -

Re: [CMake] Building tests only for make test

2009-12-15 Thread Marcel Loose
Hi Stefan, You found a typo. I'll fix that right away. Thanks. I've never tried to use the 'check' target with ctest, so I'm not sure whether it should work or not. Maybe someone else can comment on this. Best regards, Marcel Loose. On Mon, 2009-12-14 at 12:49 +0100, Dr. Stefan Sablatnög

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Wild
Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect it is something like /Users/smekal/Library/Frameworks/SDL.framework/SDL: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (compatibility version

Re: [CMake] Embedding up-to-date version info in built library

2009-12-15 Thread Kolja Waschk
Hi, add_custom_target(update_version COMMAND echo updating) add_library(mylib version.c) add_dependencies(mylib update_version) We had exactly this configuration for months and the lib was rebuilt always... but now that you affirm that it /should/ work better, I had a deeper look again.

[CMake] (no subject)

2009-12-15 Thread Johan Knutzen
Hi! What is the status of scripts enabling precompiled headers for gcc/visual studio? I've tried out PCHSupport_26 from http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does anyone have any up to date script that works with 2.8? Johan

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Werner Smekal
Hi Michael, On 12/15/09 9:58 AM, Michael Wild wrote: Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect it is something like /Users/smekal/Library/Frameworks/SDL.framework/SDL:

Re: [CMake] CPack DragNDrop generator documentation

2009-12-15 Thread Michael Wild
Bump On 27. Oct, 2009, at 14:28 , Michael Wild wrote: Hi all The CPack DragNDrop generator is completely undocumented. I created http://www.cmake.org/Bug/view.php?id=9782 to report this and attached a patch which adds some documentation for the variables used in the generator. I hope I

[CMake] CMake ParaView parallel testing on windows

2009-12-15 Thread Biddiscombe, John A.
Whilst setting up a dashboard for ParaView using windows + MPI, I noticed that a number of tests always fail because the executable is not found. I find that CMake code such as this ADD_TEST(ParallelIso-image ${VTK_MPIRUN_EXE} ${VTK_MPI_PRENUMPROC_FLAGS} ${VTK_MPI_NUMPROC_FLAG} 2

Re: [CMake] CMake ParaView parallel testing on windows

2009-12-15 Thread Biddiscombe, John A.
Erratum : I pasted the wrong version in to my earlier message, the offending CMake line is (the existing code) ${CXX_TEST_PATH}/ParallelIsoTest and ${CXX_TEST_PATH}/${CMAKE_INTDIR}/ParallelIsoTest is what I tried but is replaced with $(OutDir) -Original Message- From:

[CMake] Linking to .a files under AIX

2009-12-15 Thread jens persson
Hello I have a problem with linking to dynamic libraries on AIX: A target (target_a) needs to link to a external dynamic library (xerces) that I use find_library() to find. Something along these lines: find_library(XERCES NAMES libxerces-c2_7_0.a PATHS ${LIB_PATH} ) add_executable(target_a

Re: [CMake] (no subject)

2009-12-15 Thread John Drescher
On Tue, Dec 15, 2009 at 4:13 AM, Johan Knutzen knutzen_joh...@yahoo.se wrote: Hi! What is the status of scripts enabling precompiled headers for gcc/visual studio? I've tried out PCHSupport_26 from http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does anyone have

Re: [CMake] Linking to .a files under AIX

2009-12-15 Thread jens persson
Hello again! I found my error and have fixed it, documenting it here to aid the next person encountering it. I need to override the linker flags to remove the -bexpall flag and doing so I had accidentaly removed the -bnoipath option to so changing the lines:

Re: [CMake] CMake ParaView parallel testing on windows

2009-12-15 Thread Clinton Stimpson
How about something like this: ${EXECUTABLE_OUTPUT_PATH}/\${CTEST_CONFIGURATION_TYPE}/ MyTestExecutable Then CTEST_CONFIGURATION_TYPE is expanded at ctest time and the -C flag to ctest determines which configuration to use. Clint On Dec 15, 2009, at 4:29 AM, Biddiscombe, John A. wrote:

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Clinton Stimpson
On Dec 15, 2009, at 2:31 AM, Werner Smekal wrote: Hi Michael, On 12/15/09 9:58 AM, Michael Wild wrote: Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect it is something like

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Jackson
On Dec 15, 2009, at 10:03 AM, Clinton Stimpson wrote: On Dec 15, 2009, at 2:31 AM, Werner Smekal wrote: Hi Michael, On 12/15/09 9:58 AM, Michael Wild wrote: Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect

Re: [CMake] CPack DragNDrop generator documentation

2009-12-15 Thread David Cole
Fixed in CVS HEAD of CMake... Thanks for your patience, David On Tue, Dec 15, 2009 at 4:50 AM, Michael Wild them...@gmail.com wrote: Bump On 27. Oct, 2009, at 14:28 , Michael Wild wrote: Hi all The CPack DragNDrop generator is completely undocumented. I created

Re: [CMake] Cannot find source file.

2009-12-15 Thread Tim St. Clair
I would contend that this should be a warning vs. an error, which prevents generation. Cheers, Tim On Thu, Dec 10, 2009 at 3:18 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 10 December 2009, Tyler Roscoe wrote: On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote:

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Glenn Hughes
I think the SDL developers are just being a bit too slick. They are setting up SDL for Xcode development where typically you would link to the SDL and then have a Copy Files Phase where you copy the framework into the Application Bundle that resides in the build directory. Its a cultural

[CMake] qt .qrc file modifications require two builds

2009-12-15 Thread Glenn Hughes
If I modify my .qrc file, the first build regenerates the cxx output file, but the cxx file itself is not compiled and linked in until I build again. Is there a way to add an additional dependency to allow the system to realize that the cxx file needs a rebuild on the first pass? The CMake script

Re: [CMake] qt .qrc file modifications require two builds

2009-12-15 Thread John Drescher
The CMake script in question looks more or less like: FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} res/*.qrc  ) QT4_ADD_RESOURCES( my_RESOURCES_SOURCES ${my_RESOURCES} ) ... It's always best to not do any file globbing and add each file by hand. I believe this is causing the

Re: [CMake] qt .qrc file modifications require two builds

2009-12-15 Thread Glenn Hughes
Really? How could it? Suppose I only have 1 qrc file, named foo.qrc: wouldn't these two lines be equivalent? FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} res/*.qrc ) SET( my_RESOURCES res/foo.qrc) ??? TIA G On Tue, Dec 15, 2009 at 7:15 PM, John Drescher dresche...@gmail.com

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Wild
On 15. Dec, 2009, at 23:46 , Glenn Hughes wrote: I think the SDL developers are just being a bit too slick. They are setting up SDL for Xcode development where typically you would link to the SDL and then have a Copy Files Phase where you copy the framework into the Application Bundle