[CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Ákos Maróy
Hi, I wonder if there's an easy, straightforward way to clean a cmake project of _all_ cmake-generated files? This would include: CMakeCache.txt cmake_install.cmake CMakeFiles and all of these in subdirectories added to the project with the add_subdirectory() statement.. Thanks, Akos

Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Timenkov Yuri
On Monday 24 March 2008 12:23:04 Ákos Maróy wrote: Andreas Pakulat wrote: Use out-of-source builds, then you can just rm -rf builddir and be done. I'd love to, but I want to use Eclipse for the building itself, and it seems Eclipse needs in-source builds to be able to do meaningful

Re: [CMake] Problem building fortran project on Windows using Intel Fortran 10 compiler

2008-03-24 Thread Bill Hoffman
Xin XU wrote: Hello Bill, Thanks for your reply! I am using: CMake 2.4 patch 8 on Windows XP. I wrote a set of small C++ codes. When I put my codes and CMakeLists.txt on a Linux PC, the CMake works fine. When I put them on my Windows XP PC and asking CMake to configure for Microsoft Visual

[CMake] Suppressing Windows console in Qt app

2008-03-24 Thread Matthew Smith
Hi everyone, When I build my Qt 4 app (QTM) using CMake on Windows Vista and then run it from a prompt, the prompt does not come back as it does with normal Windows GUI apps; it behaves as if it's running a console-based application. If you press Ctrl+C, it kills the program. If you run it

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Bill Hoffman
One more warning about adding your own -I flags... I think this will break the dependency scanner of CMake, and the depends will be wrong if you do not use include_directories. -Bill ___ CMake mailing list CMake@cmake.org

Re: [CMake] Suppressing Windows console in Qt app

2008-03-24 Thread clinton
On Monday 24 March 2008 7:45:57 am Matthew Smith wrote: Hi everyone, When I build my Qt 4 app (QTM) using CMake on Windows Vista and then run it from a prompt, the prompt does not come back as it does with normal Windows GUI apps; it behaves as if it's running a console-based application.

Re: [CMake] Suppressing Windows console in Qt app

2008-03-24 Thread Mike Jackson
My guess is that in your ADD_EXECUTABLE statement, you are missing the WIN32 Argument: cmake version 2.4-patch 8 ADD_EXECUTABLE Add an executable to the project using the specified source files. ADD_EXECUTABLE(exename [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]

Re: [CMake] Suppressing Windows console in Qt app

2008-03-24 Thread clinton
If you are going to be building this as a cross platform application, then the following is useful: # Set some Win32 Specific Settings IF(WIN32) SET(GUI_TYPE WIN32) ENDIF(WIN32) # Set some Apple MacOS Specific settings IF (APPLE) SET(GUI_TYPE MACOSX_BUNDLE) ENDIF (APPLE)

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Alan W. Irwin
On 2008-03-24 10:27-0400 Bill Hoffman wrote: One more warning about adding your own -I flags... I think this will break the dependency scanner of CMake, and the depends will be wrong if you do not use include_directories. Our use case is we have a directory where our many different device

[CMake] COMPILE_FLAGS on per target and per configuration basis

2008-03-24 Thread Ilya Shvetsov
Hi, all. I need define some compile flags for my targets. This flags deepend on config tipe. With LINK_FLAGS I can do this very simple. I can write just set_target_properties(target1 PROPERTIES LINKER_FLAGS_FINAL some flags for target1) set_target_properties(target2

Re: [CMake] COMPILE_FLAGS on per target and per configuration basis

2008-03-24 Thread Timenkov Yuri
On Monday 24 March 2008 20:42:46 Ilya Shvetsov wrote: Hi, all. I need define some compile flags for my targets. This flags deepend on config tipe. With LINK_FLAGS I can do this very simple. I can write just set_target_properties(target1 PROPERTIES LINKER_FLAGS_FINAL some flags

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Alan W. Irwin
for each measurement. For cmake version 2.7-20080324 (which includes your .PHONY changes as I checked with actual results in the build-tree Makefiles) that latency has been increased by a small amount that appears to be above the timing errors. [EMAIL PROTECTED] time make /dev/null real

Re: [CMake] COMPILE_FLAGS on per target and per configuration basis

2008-03-24 Thread Ilya Shvetsov
On Mon, 24 Mar 2008 20:02:27 +0200, Timenkov Yuri [EMAIL PROTECTED] wrote: May be exist some way do the same with COMPILE_FLAGS ? I do it following way: set_source_files_properties( ${MyTarget_SRCS} PROPERTIES COMPILE_FLAGS /J /Zc:wchar_t ) Problem still exist. I

Re: [CMake] COMPILE_FLAGS on per target and per configuration basis

2008-03-24 Thread Timenkov Yuri
On Monday 24 March 2008 21:20:45 Ilya Shvetsov wrote: On Mon, 24 Mar 2008 20:02:27 +0200, Timenkov Yuri [EMAIL PROTECTED] wrote: May be exist some way do the same with COMPILE_FLAGS ? I do it following way: set_source_files_properties( ${MyTarget_SRCS} PROPERTIES

[CMake] How to make Visual Studio .vcproj with relative paths

2008-03-24 Thread Olaf van der Spek
Hi, This is a follow up to http://public.kitware.com/Bug/view.php?id=6642 I'm developing on Windows using Visual Studio 8 and in my project I use libraries like libogg, libvorbis, libpng, libbz2 and libz. Some of those libs ship VS files, some don't. Some include VS6 files, some VS7 or VS8. Most

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Bill Hoffman
OK, so for a small project like PLplot, where it does a make in 1 to 2 seconds if nothing needs to be done, this stuff really does does not matter that much. Adding the phony targets may have actually made it take longer as make would have to parse that much more stuff. As for the new way

[CMake] Curses libraries not found

2008-03-24 Thread Dario Figueira
:s, where are they? so i can install ccmake i'm usingKubunto, and i dowloaded the 2.4.7 version and make installed it. Any hints will be much appreciated, thank you. -- Dario Figueira - ___ CMake mailing list CMake@cmake.org

Re: [CMake] Curses libraries not found

2008-03-24 Thread Bill Hoffman
Dario Figueira wrote: :s, where are they? so i can install ccmake i'm usingKubunto, and i dowloaded the 2.4.7 version and make installed it. Any hints will be much appreciated, thank you. Did you install the developers files for curses on the machine? It is not the default... -Bill

Re: [CMake] Curses libraries not found

2008-03-24 Thread Andy Lego
Hello Dario, Make sure you see the .h files for ncurses. Andy On Mon, Mar 24, 2008 at 1:04 PM, Bill Hoffman [EMAIL PROTECTED] wrote: Dario Figueira wrote: :s, where are they? so i can install ccmake i'm usingKubunto, and i dowloaded the 2.4.7 version and make installed it. Any

[CMake] Cross compile + shared libs problem

2008-03-24 Thread Frederik Deweerdt
Hi, I'm trying to cross-compile static libraries for RTEMS. Our project's also targets Linux, where we use shared libraries. We declare the libraries with: add_library(libname srcs...). So STATIC or SHARED is omitted. On RTEMS there are no static libraries, so I was expecting that by setting

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Alan W. Irwin
of true latency. Here are the corresponding latency results: 2.4.8: [EMAIL PROTECTED] time make x10c /dev/null real0m0.217s user0m0.160s sys 0m0.068s 2.7-20080324: [EMAIL PROTECTED] time make x10c /dev/null real0m0.209s user0m0.168s sys 0m0.036s Repeat runs indicate

Re: [CMake] Obtaining improved GNU make performance on Makefiles generated by cmake

2008-03-24 Thread Bill Hoffman
Alan W. Irwin wrote: I have previously asked Alex to do the KDE case. Bill, would you be willing to measure latency for ParaView for cmake 2.4.8 and the present cvs version of CMake? Sure, it will take some time to do this, as a build of paraview can take some time, and I will have to

Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Philip Lowman
On Mon, Mar 24, 2008 at 4:51 AM, Ákos Maróy [EMAIL PROTECTED] wrote: Hi, I wonder if there's an easy, straightforward way to clean a cmake project of _all_ cmake-generated files? This would include: CMakeCache.txt cmake_install.cmake CMakeFiles and all of these in subdirectories added