[CMake] Re: CMAKE_MODULE_PATH not remembered?

2007-08-24 Thread Matthew Woehlke
Alexander Neundorf wrote: On Friday 24 August 2007 10:51, Matthew Woehlke wrote: Ok, so if I understand... a: the reason it doesn't work in 2.4.6 is because I didn't specify the type. b: this is fixed in CVS Right? Yes. But since this changes the behaviour, this won't be in any 2.4.x relea

Re: [CMake] macro withunexpected results

2007-08-24 Thread ope
Alexander Neundorf schrieb: > On Friday 24 August 2007 15:02, you wrote: macro(ADD_SUBDIRECTORIES dirlist) set(prefix " + ") MESSAGE(STATUS "add_subdirectories: ${ARGN}") foreach(subdir ${dirlist}) MESSAGE(STATUS "${prefix}${subdir}") add_subdirectory(${s

Re: [CMake] Re: Sharing code between projects

2007-08-24 Thread kitts
On Friday 24 Aug 2007 11:43:12 pm kitts wrote: > On Friday 24 Aug 2007 9:41:26 pm James Bigler wrote: > > >> Code is organized as; > > >> src/common > > >> src/project1 > > >> src/project2 > > >> > > >> The CMakeLists.tst files are located inside for each project which > > >> sets the right compile

Re: [CMake] macro withunexpected results

2007-08-24 Thread ope
>> >> macro(ADD_SUBDIRECTORIES dirlist) >> >> set(prefix " + ") >> >> MESSAGE(STATUS "add_subdirectories: ${ARGN}") >> >> foreach(subdir ${dirlist}) >> >> MESSAGE(STATUS "${prefix}${subdir}") >> >> add_subdirectory(${subdir}) >> >> endforeach(subdir ${dirlist}) >> >> endmacro(ADD_SU

Re: [CMake] Re: Sharing code between projects

2007-08-24 Thread kitts
On Friday 24 Aug 2007 9:41:26 pm James Bigler wrote: > >> Code is organized as; > >> src/common > >> src/project1 > >> src/project2 > >> > >> The CMakeLists.tst files are located inside for each project which sets > >> the right compiler and sources to be built. Now i want common to be > >> include

Re: [CMake] macro withunexpected results

2007-08-24 Thread Alexander Neundorf
On Friday 24 August 2007 13:24, ope wrote: ... > macro(ADD_SUBDIRECTORIES dirlist) >   set(prefix " + ") >   MESSAGE(STATUS "add_subdirectories: ${ARGN}") >   foreach(subdir ${dirlist}) >     MESSAGE(STATUS "${prefix}${subdir}") >     add_subdirectory(${subdir}) >   endforeach(subdir ${dirlist}) >

[CMake] macro withunexpected results

2007-08-24 Thread ope
Hi, I wrote a macro for use as: collect_subproject_directory_names("${CMAKE_SOURCE_DIR}/extra" EXTRA_PROJECT_DIRS) message(STATUS "Adding ${EXTRA_PROJECT_DIRS}") add_subdirectories(${EXTRA_PROJECT_DIRS}) where $ ls -1 extra boost CMakeLists.txt est threadpool and the macros self: macro(COLLEC

Re: [CMake] Re: Sharing code between projects

2007-08-24 Thread Mike Jackson
-- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Aug 24, 2007, at 10:48 AM, kitts wrote: On Thursday 23 Aug 2007 3:53:41 pm kitts wrote: Anyway, I have a new set of projects and my current problem is that i have some code that i share between proj

Re: [CMake] QT3 and embedding images

2007-08-24 Thread Tim Schooley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi again, I've managed to get it working, with the help of post http://www.cmake.org/pipermail/cmake/2005-July/007009.html Here's the macro: - # # QT3 Macro for embedding image files into source # # EMBED_TARGET = binary to link to, i.e. sbvd_

Re: [CMake] Re: Sharing code between projects

2007-08-24 Thread James Bigler
kitts wrote: On Thursday 23 Aug 2007 3:53:41 pm kitts wrote: Anyway, I have a new set of projects and my current problem is that i have some code that i share between projects. Once source can be shared not binaries. Code is organized as; src/common src/project1 src/project2 The CMakeLists.tst

Re: [CMake] Re: CMAKE_MODULE_PATH not remembered?

2007-08-24 Thread Alexander Neundorf
On Friday 24 August 2007 10:51, Matthew Woehlke wrote: > Alexander Neundorf wrote: > > On Thursday 23 August 2007 18:49, Alan W. Irwin wrote: > >> On 2007-08-23 16:29-0500 Matthew Woehlke wrote: > >>> If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH= > >>> ', I find that 'make' in the build

Re: [CMake] Re: Sharing code between projects

2007-08-24 Thread Simon
On 24/08/07, kitts <[EMAIL PROTECTED]> wrote: > On Thursday 23 Aug 2007 3:53:41 pm kitts wrote: > > Anyway, I have a new set of projects and my current problem is that i have > > some code that i share between projects. Once source can be shared not > > binaries. > > > > Code is organized as; > > s

[CMake] Re: CMAKE_MODULE_PATH not remembered?

2007-08-24 Thread Matthew Woehlke
Alexander Neundorf wrote: On Thursday 23 August 2007 18:49, Alan W. Irwin wrote: On 2007-08-23 16:29-0500 Matthew Woehlke wrote: If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH= ', I find that 'make' in the build dir, when cmake needs to be re-run (IIRC 'cmake .' has the same problem) w

[CMake] Re: Sharing code between projects

2007-08-24 Thread kitts
On Thursday 23 Aug 2007 3:53:41 pm kitts wrote: > Anyway, I have a new set of projects and my current problem is that i have > some code that i share between projects. Once source can be shared not > binaries. > > Code is organized as; > src/common > src/project1 > src/project2 > > The CMakeLists.t

Re: [CMake] CPack targets

2007-08-24 Thread Alexander Neundorf
On Wednesday 22 August 2007 09:35, Robert Bielik wrote: > Hi all, > > Just looking into using CPack for generating our installation scripts. On > Windows I can see only NSIS, are there any efforts towards generating an > XML for WiX (so that a .msi file can be created)? No, but as Eric pointed out

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread James Bigler
Alexander Neundorf wrote: On Friday 24 August 2007 04:48, Andreas Pakulat wrote: On 24.08.07 11:02:02, Dizzy wrote: My project in the install phase copies some configuration files. These files are originally using UNIX line endings (we are doing main development on UNIX plus SVN likes to keep t

Re: [CMake] QT3 and embedding images

2007-08-24 Thread Alexander Neundorf
On Friday 24 August 2007 07:41, Tim Schooley wrote: > Hi folks, > > I've recently ported my project to CMake from standard Makefiles, but > missed a vital point (only just noticed by running the damn thing!). > > I've looked around, but can't find the answer: How to I embed images > into QT3 apps w

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Alexander Neundorf
On Friday 24 August 2007 04:48, Andreas Pakulat wrote: > On 24.08.07 11:02:02, Dizzy wrote: > > My project in the install phase copies some configuration files. These > > files are originally using UNIX line endings (we are doing main > > development on UNIX plus SVN likes to keep them that way). >

Re: [CMake] CMAKE_MODULE_PATH not remembered?

2007-08-24 Thread Alexander Neundorf
On Thursday 23 August 2007 18:49, Alan W. Irwin wrote: > On 2007-08-23 16:29-0500 Matthew Woehlke wrote: > > If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH= > > ', I find that 'make' in the build dir, when cmake needs to > > be re-run (IIRC 'cmake .' has the same problem) will then fail be

Re: [CMake] Howto define build order

2007-08-24 Thread Matthias Fechner
Matthias Fechner wrote: > ADD_CUSTOM_TARGET(bar.tex > bash -c "echo hi>${FOO_BINARY_DIR}/diro/bar.tex" > VERBATIM) sry typo in email, in the file I have: ADD_CUSTOM_TARGET(bar.tex bash -c "echo hi>${FOO_BINARY_DIR}/dir/bar.tex" VERBATIM) Best regards, Matthias -- "Programming today is

Re: [CMake] Howto define build order

2007-08-24 Thread Matthias Fechner
Hi Eric, Eric Noulard wrote: > Did you try add > ADD_DEPENDENCIES(pdf GNUPLOTs) I tried with Jack together several combinations but we had problems at the time we moved some of the maindir into a subdir. I reduced the problem now to a very simple one, everyone can try it. Create a directory, touc

[CMake] QT3 and embedding images

2007-08-24 Thread Tim Schooley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I've recently ported my project to CMake from standard Makefiles, but missed a vital point (only just noticed by running the damn thing!). I've looked around, but can't find the answer: How to I embed images into QT3 apps with CMake ? The M

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Eric Noulard
2007/8/24, Dizzy <[EMAIL PROTECTED]>: > On Friday 24 August 2007 13:04:15 Jack Kelly wrote: > > Dizzy wrote: > > > > You shouldn't have to do any escaping. Use > > > > CONFIGURE_FILE(${SOURCEFILE} ${DESTFILE} COPYONLY) > > Thanks for the hint. This should solve my existent problem but it's not a go

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 13:04:15 Jack Kelly wrote: > Dizzy wrote: > > Thanks for the idea. I could use as a workarround configure_file() in > > some way or another but then I still need one more issue solved. How to > > escape "${variable}" strings in a input to configure_file() so that it > > doe

Re: [CMake] CPack again..

2007-08-24 Thread Eric Noulard
2007/8/24, Robert Bielik <[EMAIL PROTECTED]>: > Is CPack anything that is "alive"? The lack of responses makes me feel > "not"... (?) Yes it is. At least many of us are using CPack. Mathieu did contribute DEB (Debian) package generator recently merged into CVS I did some work for an RPM package g

Re: [CMake] Howto define build order

2007-08-24 Thread Eric Noulard
2007/8/22, Matthias Fechner <[EMAIL PROTECTED]>: > Hi Jack, > > Jack Kelly wrote: > > INCLUDE(AddFileDependencies) > > and then > > ADD_FILE_DEPENDENCIES(${CMAKE_BINARY_DIR}/path/to/your/pdf > > ${CMAKE_BINARY_DIR}/path/to/your/gnuplot/output) > > thx for your answer. > I tried now several combinat

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Jack Kelly
Dizzy wrote: Thanks for the idea. I could use as a workarround configure_file() in some way or another but then I still need one more issue solved. How to escape "${variable}" strings in a input to configure_file() so that it doesn't try to do variable replacement on the placeholder? (this shou

Re: [CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Dizzy
On Friday 24 August 2007 12:25:47 Jack Kelly wrote: > Dizzy wrote: > > To solve this in automake I just created some dummy "_dir" > > variables that automake interpreted and created those empty directories > > on install. I would like to know if there is something similar for cmake, > > thank you!

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 12:30:58 Andreas Pakulat wrote: > On 24.08.07 12:08:34, Dizzy wrote: > > On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote: > > > Alternatively you could let your program be intelligent enough to guess > > > the lineending by checking wether its \r\n or just \n and ad

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Andreas Pakulat
On 24.08.07 12:08:34, Dizzy wrote: > On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote: > > Alternatively you could let your program be intelligent enough to guess > > the lineending by checking wether its \r\n or just \n and adjust the > > reading of the conf files apropriately. > > The pro

Re: [CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Jack Kelly
Dizzy wrote: On install I would need cmake to portably create some empty directories that do not exist in the source. INSTALL(DIRECTORY...) just copies an existent structure in my case that structure does not exists. I know I could probably search for some external mkdir command and use it but

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote: > You can have a different lineending on the working copy really easily by > using svn:eol-style property (on each file where you want it). That way > you could checkout on win32 and automatically get win32-lineendings for > those files that

Re: [CMake] installation of properly line ended text files

2007-08-24 Thread Andreas Pakulat
On 24.08.07 11:02:02, Dizzy wrote: > My project in the install phase copies some configuration files. These files > are originally using UNIX line endings (we are doing main development on UNIX > plus SVN likes to keep them that way). Right, SVN internally always stores text files with only \n a

Re: [CMake] Cannot create named generator when executing cmake through script (python)

2007-08-24 Thread Raphael Cotty
Hi, Try that: if platform.platform(True, True) == "Windows-XP": p1 = subprocess.Popen( ['cmake', '-DCMAKE_INSTALL_PREFIX=' + installDir, '-DCMAKE_TOOLCHAIN_FILE=' + toolChainFile, '-G', generator, '-DCMAKE_BUILD_TYPE=' + buildType, sourceDir], shell=True ) else: p1 = subprocess.

[CMake] INSTALL(NEW_DIRECTORY...) ?

2007-08-24 Thread Dizzy
Hello (Sorry for the mailing list spam I should have asked about this too in the previous mail) On install I would need cmake to portably create some empty directories that do not exist in the source. INSTALL(DIRECTORY...) just copies an existent structure in my case that structure does not ex

[CMake] installation of properly line ended text files

2007-08-24 Thread Dizzy
Hello My project in the install phase copies some configuration files. These files are originally using UNIX line endings (we are doing main development on UNIX plus SVN likes to keep them that way). However, when installing on Win32 (or other platform with different line endings) it would be n