Re: [CMake] embed version numbers in libraries (.so, a) and executables

2008-03-19 Thread Philip Lowman
On Mon, Mar 17, 2008 at 7:54 PM, Ittay Dror <[EMAIL PROTECTED]> wrote: > Hi, > > Does cmake have support for embedding version numbers in libraries and > executables? Specifically: > * generate a string with the library / executable name, containing the > version What do you want to do? Aside f

[CMake] Sun GCC builds (cooltools)

2008-03-19 Thread George Neill
Hi CMakers, I am building cmake on a Sun Enterprise 220R with 2GB of RAM running Solaris 10 08/07. I have two compilers installed on this box. 1. SunStudio 12 -bash-3.00$ /opt/SUNWspro/bin/CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 2. The SUN modified gcc compiler v4.2.0 --

[CMake] color output with GNU Screen

2008-03-19 Thread matt
Hi, I'm using GNU Screen and am having a hard time getting color output. Oddly, on my amd64 system, it works fine. However on my x86 system, no color output. I can get color output outside of screen session. Using CMake 2.4.8 on gentoo. Thanks, thewtex _

Re: [CMake] INCLUDE_DIRECTORIES and FIND_PATH

2008-03-19 Thread George Neill
Hi! > FIND_PATH(GN > NAMES "include" > PATHS "/tmp" > ) I see I am using this wrong, my apologies. Thanks, George. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Getting Makefiles sensitive tonew/deleted files/directories?

2008-03-19 Thread blinkeye
On 03/19/2008 09:50 PM, Ken Martin wrote: > Can you do the glob, configure the result out to a file, then INCLUDE that > file. I believe that will solve the problem. Something like > > file(GLOB SRC *.cpp) > configure_file(somefile.in somefile) > include(somefile) > > where somefile.in looks li

Re: [CMake] Getting Makefiles sensitive tonew/deleted files/directories?

2008-03-19 Thread Ken Martin
Can you do the glob, configure the result out to a file, then INCLUDE that file. I believe that will solve the problem. Something like file(GLOB SRC *.cpp) configure_file(somefile.in somefile) include(somefile) where somefile.in looks like # list of files as a comment -- ${SRC} This works becau

Re: [CMake] Batch converting several files

2008-03-19 Thread Andy Lego
Hi Martin, Happy I could help. Just make sure to rerun CMake when you add new input files. Andy On Wed, Mar 19, 2008 at 12:10 PM, Martin Fischer <[EMAIL PROTECTED]> wrote: > Andy, > > thanks for the tutorial. It does exactly what I need. I copied and > modified the relevant pieces and it work

[CMake] INCLUDE_DIRECTORIES and FIND_PATH

2008-03-19 Thread George Neill
Hi CMakers! I am using, cmake version 2.4-patch 6 on linux. This example using INCLUDE_DIRECTORIES doesn't appear to be inherited by project sub directories. FIND_PATH(GN NAMES "include" PATHS "/tmp" ) INCLUDE_DIRECTORIES( "${GN}/child" ) If I change it to this, INCLUDE_DIRECTORIES( "

Re: [CMake] Batch converting several files

2008-03-19 Thread Martin Fischer
Andy, thanks for the tutorial. It does exactly what I need. I copied and modified the relevant pieces and it worked as expected on the first run. Thanks Martin On 18.03.2008 18:27 Andy Lego wrote: I wrote a quick tutorial (tested on Linux and Windows) for what you want to do: http://www.cma

Re: [CMake] Getting Makefiles sensitive to new/deleted files/dire ctories?

2008-03-19 Thread Convey Christian J NPRI
> Convey Christian J NPRI wrote: > > Many of my CMakeLists.txt files has code like this: > > > > FILE(GLOB SRC *.cpp *.c) > > ADD_LIBRARY(my_lib ${SRC}) > > > > My users occasionally get tripped up because after someone > adds a new .cpp file, the other users forget to rerun "cmake" > before ru

Re: [CMake] Getting Makefiles sensitive to new/deleted files/directories?

2008-03-19 Thread Bill Hoffman
Convey Christian J NPRI wrote: Many of my CMakeLists.txt files has code like this: FILE(GLOB SRC *.cpp *.c) ADD_LIBRARY(my_lib ${SRC}) My users occasionally get tripped up because after someone adds a new .cpp file, the other users forget to rerun "cmake" before running "make". Has anyone con

[CMake] Getting Makefiles sensitive to new/deleted files/directories?

2008-03-19 Thread Convey Christian J NPRI
Many of my CMakeLists.txt files has code like this: FILE(GLOB SRC *.cpp *.c) ADD_LIBRARY(my_lib ${SRC}) My users occasionally get tripped up because after someone adds a new .cpp file, the other users forget to rerun "cmake" before running "make". Has anyone considered enhancing CMake so that w

Re: [CMake] CMake C++/ADA

2008-03-19 Thread alexander
Hi Romain, > I must do a project for my university. This project is composed of > three part, one in C, one in Ada and one C++(Qt for Ui) First of all it is possible to use these three languages in one project. I am doing it here for at least one year. If you want to do an intermixing of these