Re: [CMake] scripting ctest

2009-11-09 Thread th . tom
Hi David, thanks for the clarification. I set ${PROJECT_NAME} and ${SOURCE_DIR} to the appropriate name, but it changes from script to script (there is one script for every packet I create, so I only showed the code, that is used by all projects.) I am actually not working full time on this j

[CMake] scripting ctest

2009-11-06 Thread th . tom
Hi again, I am doing something wrong here, but what: -- snip script.cmake --- SET ( CTEST_PROJECT_NAME ${PROJECT_NAME} ) SET ( CTEST_BINARY_DIRECTORY ${SOURCE_DIR}/build ) SET ( CTEST_SOURCE_DIRECTORY ${SOURCE_DIR} ) SET ( CTEST_CMAKE_GENERATOR "Unix Makefiles" ) SET ( CTEST_ENVIRONME

Re: [CMake] simple ctest

2009-11-04 Thread th . tom
> What version of ctest? What OS? I am actually working on Windows XP with ctest version 2.6-patch 4 I changed over to learn the windows batch a bit and I created a short script to do the work, for some things I planed to integrate into ctest. The rest works like a charm (configuring, building,

[CMake] simple ctest

2009-11-04 Thread th . tom
I did the following steps: 1) creating script.cmake: SET ( SOURCE_DIR "C:/my/sources/" ) SET ( CTEST_BINARY_DIRECTORY ${SOURCE_DIR}/build ) SET ( CTEST_SOURCE_DIRECTORY ${SOURCE_DIR} ) MESSAGE ( "Actual path is ${CTEST_SOURCE_DIRECTORY}" ) MESSAGE ( "Actual binary path is ${CTEST_BINARY_DIRECTOR

Re: [CMake] multiple cmake files in one directory

2009-09-24 Thread th . tom
> > Maybe I did not get the point of CMAKE_SOURCE_DIR :-/ > > What I do is creating a directory "packages\project1" here I place the > > starting CMakeLists.txt file and another subdirectory "build". > > > > The CMakeLists.txt consists of > > > > ADD_SUBDIRECTORY(../../myfirstdir) > > ADD_SUBDI

Re: [CMake] external tools in visual studio

2009-09-24 Thread th . tom
Hi Philip, > > thats good to know for most people using bison and flex! > > > > In my special case, I have to add some stuff, as the old solaris > version, I > > am working with only supplies yacc instead of Gnu Bison and "lex" > instread > > of "flex". > > > > Sadly these programs does not provid

Re: [CMake] multiple cmake files in one directory

2009-09-24 Thread th . tom
To make a long story short: What I did is, I write SET (CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../..) in the starting CMakeLists.txt in [whatever]/build/project1/ But it looks a bit ugly to me ... -tom This is not nice in my eyes, but it is > > On Wednesday 23 September 2009 10:25:37 am th.

[CMake] NSIS registry entry

2009-09-24 Thread th . tom
Hi all, I would like to add aregistry entry through NSIS for easy access to the version string and the installation path. When I try this: set ( CPACK_NSIS_EXTRA_INSTALL_COMMANDS " WriteRegStr HKCR '${COMPLETE_PATH}' 'InstallPath' INSTALL_PATH WriteRegStr HKCR '${COMPLETE_PATH}'

Re: [CMake] multiple cmake files in one directory

2009-09-24 Thread th . tom
> On Wednesday 23 September 2009 10:25:37 am th@gmx.de wrote: > > hm, right - this would solve my problem, but sadly writing everything in > > one CMakeLists.txt file was not a clever idea, as the projects should be > > build independently. > > > > Another solution I had (someone posted that)

Re: [CMake] multiple cmake files in one directory

2009-09-23 Thread th . tom
hm, right - this would solve my problem, but sadly writing everything in one CMakeLists.txt file was not a clever idea, as the projects should be build independently. Another solution I had (someone posted that) is creating a subdirectory for every project and place the specific CMakeLists.txt

Re: [CMake] multiple cmake files in one directory

2009-09-23 Thread th . tom
Hi, this thread got a bit off topic, so I try to focus that again, as I tried a lot of things, but didn't get it to run: In the end I would like to have some (lets say 10) packages (Installer bundles, which I can create with cpack) with several executables and libraries. My example over-simpli

Re: [CMake] external tools in visual studio

2009-09-23 Thread th . tom
Hey Philip, thats good to know for most people using bison and flex! In my special case, I have to add some stuff, as the old solaris version, I am working with only supplies yacc instead of Gnu Bison and "lex" instread of "flex". Sadly these programs does not provide the same command line opt

Re: [CMake] external tools in visual studio

2009-09-23 Thread th . tom
> > I have to revoke my last information. It does not work at least with a > Visual Studio 2003 Project. Here, the system PATH is ignored. > > > > When I use an nmake makefile on the visual studio command line promt, it > works fine - What is really kind of weird. > > > > Is there another way to te

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread th . tom
> On Tue, Sep 22, 2009 at 05:55:49PM +0200, th@gmx.de wrote: > > I have seen a thread about this issue but there was not a real > > solution, so I try to ask that again: Is there a way to define a > > specific CMakeLists.txt-file with a cmake call. > > Maybe you should post a link to the thread

[CMake] multiple cmake files in one directory

2009-09-22 Thread th . tom
Hi, I have seen a thread about this issue but there was not a real solution, so I try to ask that again: Is there a way to define a specific CMakeLists.txt-file with a cmake call. I have two projects, which have the same root directory (what is really nasty but I can't change it actually): -d

Re: [CMake] external tools in visual studio

2009-09-22 Thread th . tom
> >> We use CMake + Flex/Bison for our project > >> https://savannah.nongnu.org/projects/certi > >> (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html > >>  but there is not much to discover) > >> > >> We  did face the same "m4 not found" trouble and it has > >> been "fixed" by

Re: [CMake] Custom Command Execution

2009-09-21 Thread th . tom
Hey Eric, > > Hi, > > > > I have the following CMakeLists.txt: > > > > - > > cmake_minimum_required(VERSION 2.6) > > MESSAGE (" CMAKE TEST ") > > > > ADD_CUSTOM_COMMAND (TARGET Hello PRE_BUILD > >                    COMMAND ${CMAKE_COMMAND} -E echo "Prebuild > execution" > >              

[CMake] Custom Command Execution

2009-09-21 Thread th . tom
Hi, I have the following CMakeLists.txt: - cmake_minimum_required(VERSION 2.6) MESSAGE (" CMAKE TEST ") ADD_CUSTOM_COMMAND (TARGET Hello PRE_BUILD COMMAND ${CMAKE_COMMAND} -E echo "Prebuild execution" COMMENT "Information string for prebuild execu

Re: [CMake] external tools in visual studio

2009-09-18 Thread th . tom
> We use CMake + Flex/Bison for our project > https://savannah.nongnu.org/projects/certi > (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html > but there is not much to discover) > > We did face the same "m4 not found" trouble and it has > been "fixed" by putting > C:/Program

[CMake] external tools in visual studio

2009-09-17 Thread th . tom
Hi, I may haven't used the right keywords on google, as I believe this is asked many times befor: I have a multiplatform project that uses external tools (yacc/bison/lex/flex). I don`t have any problems under linux/solaris etc. but I really had a bad time trying to make this work under windows