RE: [CMake] Multiple executables sharing object files

2007-12-19 Thread Mike Talbot
I work on a similarly large project and have found that building shared libraries for development is much faster (in terms of compile/link time) when making small changes (working in Visual Studio). Nightly or test builds can use static libraries to produce single executables. Provided you have

[CMake] How to test environment variable in IF command

2007-07-19 Thread Mike Talbot
? Thanks, Mike -- Mike Talbot Core Petrel Architect (Abingdon) Schlumberger Lambourn Court, Wyndyke Furlong, Abingdon Business Park, Abingdon, Oxfordshire, OX14 1UJ, UK Office: +44 (0)1235 543 488 Mobile: +44 (0)7790 382 746 ___ CMake mailing list CMake

Re: [CMake] How to test environment variable in IF command

2007-07-19 Thread Mike Talbot
, David On 7/19/07, *Mike Talbot* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm trying to work out how to test for an environment variable in an IF command, the following doesn't work: SET(ENV{FOO} ON) MESSAGE(FOO = $ENV{FOO})# prints FOO = ON IF(ENV

Re: [CMake] submission: updated Modules/FindBoost.cmake

2007-05-18 Thread Mike Talbot
I have made some enhancements to FindBoost.cmake to try to add support for the boost libraries (attached). Basic use is something like this: FIND_PACKAGE(Boost) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) ADD_EXECUTABLE(signal signal.cpp) TARGET_LINK_LIBRARIES(signal ${Boost_signal_LIBRARIES})

Re: [CMake] submission: updated Modules/FindBoost.cmake

2007-05-18 Thread Mike Talbot
Cristian Adam wrote: Please update your findboost.cmake with the changes the original poster made, by adding boost-1.34 (and others) to SUFFIX_FOR_PATH. Done. I have also submitted these changes as a feature request http://public.kitware.com/Bug/bug.php?op=showbugid=5057pos=0 Regards, Mike

[CMake] Adding miscellaneous files to ADD_CUSTOM_COMMAND

2007-04-20 Thread Mike Talbot
Hi, I have created a custom build rule to generate doxygen documentation for my project like this: FIND_PACKAGE(Doxygen) CONFIGURE_FILE( ${PROJECT_SOURCE_DIR}/doxyfile.in ${PROJECT_BINARY_DIR}/doxyfile) ADD_CUSTOM_TARGET(DOCUMENTATION COMMAND ${DOXYGEN} ${PROJECT_BINARY_DIR}/doxyfile)

Re: [CMake] automagically generated header hell

2006-06-30 Thread Mike Talbot
I have a similar problem, except that using ADD_DEPENDENCIES to make the library with generated files a dependency of the targets that use it, causes the target libraries to include a copy of the dependent library when built as static libraries with VC71 (this is a long standing (mis)feature

Re: [CMake] WIN32 definition gone in cmake 2.4.2

2006-06-14 Thread Mike Talbot
Jan Woetzel wrote: Mike Talbot wrote: 2.4.2 ... doesn't define the preprocessor symbol WIN32 ... for the VS 7.1 generator. I cannot confirm this. It works here as expected - with cmake 2.4.2 on Windows - using Visual studio .net 2003 generator. Have a look at a hello world example

[CMake] ctest and cppunit

2006-01-24 Thread Mike Talbot
:/build/lib/$(OutDir)/MyUnitTest.dll but ctest does not expand $(OutDir) to the build config (e.g. Debug). Am I missing something or is this a bug? [I am using cmake version 2.2-patch 3 on Windows XP] Thanks, Mike -- Mike Talbot Senior Software Developer Schlumberger Lambourn Court, Wyndyke Furlong