[CMake] imported lib properties...

2009-03-14 Thread Asmodehn Shade
Hi all, I am currently converting my old cmake 2.4 scripts to cmake 2.6.3, as I am enjoying the new possibilities offered by the export / import system I previously implemented my self a little dirty workaround this limitation... so I am pretty happy to see this coming along ;-) Anyway I now am h

Re: [CMake] How can link to a library just like the system libs?

2009-03-14 Thread Philip Lowman
On Sat, Mar 14, 2009 at 10:43 AM, Kermit Mei wrote: > Hello, I have a library which had been installed into my system > under /usr/lib/. When I manually compile it, I must type: > cc -Wall udpcli.c -o cli -lapue > > Now, I wrote my cmakelists.txt like this: > CMAKE_MINIMUM_REQUIRED(VERSION 2.6) >

[CMake] Problems with REGEX REPLACE

2009-03-14 Thread Wim Dumon
Hi, I have some files which contain lines like this: int a() { print "foo"; do "bar"; } Which I want to convert into a C-style string, so I want to start with some transformations that would turn this file into something like: char *myFile = "int a() {" " print \"foo\";" " do \"bar\";" "}";

[CMake] How can link to a library just like the system libs?

2009-03-14 Thread Kermit Mei
Hello, I have a library which had been installed into my system under /usr/lib/. When I manually compile it, I must type: cc -Wall udpcli.c -o cli -lapue Now, I wrote my cmakelists.txt like this: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(UDPCS) FIND_LIBRARY(APUE_LIB, /usr/lib/) ADD_EXECUTABLE(se

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
On Mar 14, 2009, at 10:34 AM, Mike Arthur wrote: On Saturday 14 March 2009 14:23:51 Michael Jackson wrote: Well I thought that was what I was supposed to do. If I give it the path then it automatically gets installed into the bundle. Obviously that will not work without some modifications/bug

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Mike Arthur
On Saturday 14 March 2009 14:23:51 Michael Jackson wrote: > Well I thought that was what I was supposed to do. If I give it the > path then it automatically gets installed into the bundle. Obviously > that will not work without some modifications/bug fix to CMake. > > What installation code are yo

Re: [CMake] 1 tricky question, 1 bug report

2009-03-14 Thread Maik Beckmann
Maik Beckmann schrieb am Samstag 14 März 2009 um 00:02: > However, a look at cmFortranLexer.cxx shows that BEGIN is defined as > #define BEGIN yyg->yy_start = 1 + 2 * > which IMHO means that the lexer can only have one state at a time. If > str_dq or str_sq is set, the desired *_fmt state is lo

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
On Mar 14, 2009, at 10:12 AM, Mike Arthur wrote: On Saturday 14 March 2009 14:04:22 Michael Jackson wrote: Is it a bug that CMake is putting in the absolute path to my icon file instead of just the name? You gave it an absolute path though? I got it working fine when I just installed the

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Mike Arthur
On Saturday 14 March 2009 14:04:22 Michael Jackson wrote: > Is it a bug that CMake is putting in the absolute path to my icon file > instead of just the name? You gave it an absolute path though? I got it working fine when I just installed the icon into the bundle and then set the location afterw

[CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
have the following cmake code: IF (APPLE) SET(GUI_TYPE MACOSX_BUNDLE) SET(MACOSX_BUNDLE_ICON_FILE ${RoboMetTools_RESOURCES_DIR}/ QRoboMetImporter.icns) SET(PROJECT_SRCS ${PROJECT_SRCS} ${MACOSX_BUNDLE_ICON_FILE}) SET_SOURCE_FILES_PROPERTIES(${RoboMetTools_RESOURCES_DIR}/ QRoboMetImporter.i

Re: [CMake] VS2005 all headers are excluded

2009-03-14 Thread Bill Hoffman
Hicham Mouline wrote: -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: 13 March 2009 21:25 To: Bill Hoffman Cc: Hicham Mouline; cmake@cmake.org Subject: Re: [CMake] VS2005 all headers are excluded Is this causing issues with the building of your project? Or i

Re: [CMake] VS2005 all headers are excluded

2009-03-14 Thread Hicham Mouline
-Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: 13 March 2009 21:25 To: Bill Hoffman Cc: Hicham Mouline; cmake@cmake.org Subject: Re: [CMake] VS2005 all headers are excluded > Is this causing issues with the building of your project? Or is it just ugly > to look