[CMake] add_custom_command issue

2010-02-28 Thread Surya Kiran Gullapalli
Hello all, I'm struggling with add_custom_command. Let me explain the problem in detail. I've these set of cxx files and hxx files. I run a perl script on each of them to generate a certain kind of translation file. The command looks like *perl trans.pl source.cxx -o source_cxx_tro* * * and simil

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Michael Wild
On 1. Mar, 2010, at 4:10 , Albert Z wrote: > I just found that unless I explicitly include ExternalProject.cmak in my > cmake build, cmake won't find command "ExternalProject_Add", which is pretty > weird for me. > include(/usr/local/share/cmake-2.8/Modules/ExternalProject.cmake) Again: include

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Michael Wild
include(ExternalProject) Michael On 1. Mar, 2010, at 2:45 , Albert Z wrote: > Thanks, Luigi. However, I read the CMake 2.8 doc and tried to use function > "ExternalProject_Add". When I ran cmake in the root of my project, I got the > following error > > Unknown CMake command "ExternalProject_A

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Albert Z
I just found that unless I explicitly include ExternalProject.cmak in my cmake build, cmake won't find command "ExternalProject_Add", which is pretty weird for me. include(/usr/local/share/cmake-2.8/Modules/ExternalProject.cmake) And now the problem is that if I use the following cmake script to b

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Albert Z
Thanks, Luigi. However, I read the CMake 2.8 doc and tried to use function "ExternalProject_Add". When I ran cmake in the root of my project, I got the following error Unknown CMake command "ExternalProject_Add" I tried on both linux and mac and got the same error. And I am sure the version of th

Re: [CMake] FindCurses wide

2010-02-28 Thread Gary Briggs
On Sun, Feb 28, 2010 at 06:22:03PM -0500, Philip Lowman wrote: > If it's not too much trouble, could you please open a ticket for this? > http://www.cmake.org/Bug No problem: http://www.cmake.org/Bug/view.php?id=10347 Thanks, Gary (-; ___ Powered by www

Re: [CMake] FindCurses wide

2010-02-28 Thread Philip Lowman
If it's not too much trouble, could you please open a ticket for this? http://www.cmake.org/Bug On Sat, Feb 27, 2010 at 10:53 PM, Gary Briggs wrote: > I found this thread from a while ago while searching for how to get > ncurses to support wide chars: > > http://www.mail-archive.com/cmake@cmake.o

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Naram Qashat
On 02/28/10 11:52, Eric Noulard wrote: 2010/2/28 Bill Hoffman: Off course the cmake UI would authorize to unfilter all vars just as today there is the advanced/normal view. You could just use the advanced/non-advanced to handle this. When you want to show a variable to the user make it non-

Re: [CMake] How to install headers in a library

2010-02-28 Thread Giampiero Gabbiani
In data domenica 28 febbraio 2010 11:50:20, Michael Wild ha scritto: : > On 28. Feb, 2010, at 11:09 , Hendrik Sattler wrote: > > Am Sonntag 28 Februar 2010 10:31:57 schrieb Giampiero Gabbiani: > >> Hi all, > >> I like very much the simplicity of cmake in comparison with the classic > >> autotools f

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Eric Noulard
2010/2/28 Bill Hoffman : > >> >> Off course the cmake UI would authorize to unfilter all vars >> just as today there is the advanced/normal view. > > You could just use the advanced/non-advanced to handle this. When you want > to show a variable to the user make it non-advanced.  This would work wi

Re: [CMake] CMAKE_TOOLCHAIN_FILE support, empty CMAKE_AR && CMAKE_RANLIB

2010-02-28 Thread Alexander Neundorf
On Saturday 27 February 2010, Oleg Kravchenko wrote: > Hello i am try build tinyxml library by mingw32 on gentoo linux with cmake: > =dev-util/cmake-2.6.4-r3 > =dev-util/cmake-2.8.0-r2 > > But have this errors: > $ cmake -DCMAKE_TOOLCHAIN_FILE=~/i686-pc-mingw32.cmake - > DDOKAN_INCLUDE_DIR=~/projec

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Bill Hoffman
Matt Williams wrote: On 28 February 2010 14:39, Bill Hoffman wrote: Off course the cmake UI would authorize to unfilter all vars just as today there is the advanced/normal view. You could just use the advanced/non-advanced to handle this. When you want to show a variable to the user make it no

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Matt Williams
On 28 February 2010 14:39, Bill Hoffman wrote: >> Off course the cmake UI would authorize to unfilter all vars >> just as today there is the advanced/normal view. > > You could just use the advanced/non-advanced to handle this. When you want > to show a variable to the user make it non-advanced.  

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Bill Hoffman
Off course the cmake UI would authorize to unfilter all vars just as today there is the advanced/normal view. You could just use the advanced/non-advanced to handle this. When you want to show a variable to the user make it non-advanced. This would work with ccmake, cmake -i, and cmake-gui

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Luigi Calori
Albert Z wrote: Hello, Our project now uses a bunch of 3rd party libraries such as apr, protobuf, libcurl, etc. Almost all of these libraries use autoconf (configure.in ) based build system. Since we have some modifications to most of the libraries, we have to integrate

Re: [CMake] Can CMake prompt the user for input while it's running?

2010-02-28 Thread Eric Noulard
2010/2/28 Naram Qashat : >> Now since there is a "Grouped View" based on var name in CMake gui >> you should be able to emulate what you want using >> "conditionnal" option + cmake gui + grouped view. > > Most of our users are compiling our program under *nix and will not be using > a GUI, which is

Re: [CMake] How to install headers in a library

2010-02-28 Thread Michael Wild
On 28. Feb, 2010, at 11:09 , Hendrik Sattler wrote: > Am Sonntag 28 Februar 2010 10:31:57 schrieb Giampiero Gabbiani: >> Hi all, >> I like very much the simplicity of cmake in comparison with the classic >> autotools framework, but still I have two questions concerning the porting >> of a Linux b

Re: [CMake] How to install headers in a library

2010-02-28 Thread Hendrik Sattler
Am Sonntag 28 Februar 2010 10:31:57 schrieb Giampiero Gabbiani: > Hi all, > I like very much the simplicity of cmake in comparison with the classic > autotools framework, but still I have two questions concerning the porting > of a Linux based project under cmake: > > 1) when defining a library (

[CMake] How to install headers in a library

2010-02-28 Thread Giampiero Gabbiani
Hi all, I like very much the simplicity of cmake in comparison with the classic autotools framework, but still I have two questions concerning the porting of a Linux based project under cmake: 1) when defining a library (shared or static) as a project target , I expected that cmake would unders