[CMake] Test for if a macro defined

2008-02-08 Thread James Bigler
Is there an expression similar to the one for variables to determine if a macro is defined? MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST) James __

Re: [CMake] "Treat wchar as built-in type" in Cmake ?

2008-02-08 Thread Stefan Buschmann
Just add the corresponding command line option for the compiler: ADD_DEFINITIONS( /Zc:wchar_t-# Treat wchar_t as built-in type ) BTW: The command line switch for a specific option is usually mentioned in the comments for that option in Visual Studio. Ste

[CMake] "Treat wchar as built-in type" in Cmake ?

2008-02-08 Thread Stephen Collyer
I have a single Win32 project where I need to set the VSC++ value of "Treat wchar as built-in type" to No (to prevent link errors against the Xerces libraries) Is it possible to do this from within CMake ? It'd be a lot nicer than having to do it manually within VS. Google seems to imply that ther

Re: [CMake] converting VS projects to CMake

2008-02-08 Thread Brandon Van Every
On Feb 8, 2008 1:14 PM, Sylvain Benner <[EMAIL PROTECTED]> wrote: > A convertion tool to CMake is not doable for large projects, because > large projects need a framework to be viable. So migrating to CMake > implies "making" or "migrating to" a new framework. A conversion tool > could provide you

RE: [CMake] 4th Edition CMake book now in stock

2008-02-08 Thread Ken Martin
> Does the new edition of the book talk about functions, return, break, > raise_scope, etc? Only on one the one page errata sheet that comes with it. The main additions are CPack, cross compiling, a couple more steps in the tutorials, and any updates to bring the book up to the state of CMake CVS

Re: [CMake] converting VS projects to CMake

2008-02-08 Thread Sylvain Benner
A convertion tool to CMake is not doable for large projects, because large projects need a framework to be viable. So migrating to CMake implies "making" or "migrating to" a new framework. A conversion tool could provide you with working CMakeLists.txt but you will lack a framework around them.

Re: [CMake] converting VS projects to CMake

2008-02-08 Thread Brandon Van Every
On Feb 8, 2008 11:30 AM, Jesper Eskilson <[EMAIL PROTECTED]> wrote: > > Brandon Van Every wrote: > > Someone asked me the other day why CMake doesn't do this. I thought I > > gave him a reasonable answer, that it would be painful to do, and that > > CMake --> native is a much easier problem than n

RE: [CMake] 4th Edition CMake book now in stock

2008-02-08 Thread Pau Garcia i Quiles
Quoting Ken Martin <[EMAIL PROTECTED]>: This edition of the book is written around 2.6 isn't it? What does this mean (if anything) about the coming release of 2.6? It means 2.6 should go to beta as soon as we possibly can get it there :) We wanted 2.6 to be out when the books arrived. It is c

Re: [CMake] converting VS projects to CMake

2008-02-08 Thread Jesper Eskilson
Brandon Van Every wrote: Someone asked me the other day why CMake doesn't do this. I thought I gave him a reasonable answer, that it would be painful to do, and that CMake --> native is a much easier problem than native --> CMake. But I said I would ask here for other people's opinions on it.

[CMake] converting VS projects to CMake

2008-02-08 Thread Brandon Van Every
Someone asked me the other day why CMake doesn't do this. I thought I gave him a reasonable answer, that it would be painful to do, and that CMake --> native is a much easier problem than native --> CMake. But I said I would ask here for other people's opinions on it. I have experience convertin

RE: [CMake] 4th Edition CMake book now in stock

2008-02-08 Thread Ken Martin
> This edition of the book is written around 2.6 isn't it? What does this > mean > (if anything) about the coming release of 2.6? It means 2.6 should go to beta as soon as we possibly can get it there :) We wanted 2.6 to be out when the books arrived. It is close. We just want to make sure the ke

Re: [CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-08 Thread Sylvain Benner
SET(CMAKE_COMMAND "copy \"${vpcl_path}\" \"${PROJECT_SOURCE_DIR}\"") ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND ${CMAKE_COMMAND} VERBATIM) I think you have forgot the ARGS argument Try this instead: ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND copy ARGS "\"${vpcl_path}\"" "\

[CMake] Problem in ADD_CUSTOM_COMMAND

2008-02-08 Thread Malhotra, Anupam
Hi I am using ADD_CUSTOM_COMMAND to copy a library after it is build. But the copy is giving an error. Below is the snippet from my CMakeLists.txt file. Please advise. ... ... ADD_LIBRARY(vpcl "vpcl_dataconversion.c" "vpcl_datetime.c" "vpcl_string.c" "vpcl_sharedlib.c" "vpcl_platformab

Re: [CMake] Specifying Project Dependencies in CMakeLists.xt

2008-02-08 Thread Sylvain Benner
I have a workspace in which there are 7 projects. If we open the Workspace, then we can specify the dependencies using the menu ‘Project’->’Dependencies…’.I want to specify these dependencies among the various projects in CMakeLists.txt. Can that be done? Yes it can be done with command ADD

Re: [CMake] Specifying Post-build step in CMakeLists.txt

2008-02-08 Thread Sylvain Benner
In Visual Studio project properties, we can specify the ‘Post-build step’ in Project settings. Can these settings be made in CMakeLists.txt? Yes it can be achieved with the command ADD_CUSTOM_COMMAND The full documentation of the commands can be found online here: http://www.cmake.org/HTML/D

Re: [CMake] Specifying Post-build step in CMakeLists.txt

2008-02-08 Thread Steven Van Ingelgem
http://www.cmake.org/HTML/Documentation.html search for: post_build On 08/02/2008, Malhotra, Anupam <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > In Visual Studio project properties, we can specify the 'Post-build step' in > Project settings. Can these settings be made in CMakeLists.txt? > > >

[CMake] Specifying Project Dependencies in CMakeLists.xt

2008-02-08 Thread Malhotra, Anupam
Hi I have a workspace in which there are 7 projects. If we open the Workspace, then we can specify the dependencies using the menu 'Project'->'Dependencies...'.I want to specify these dependencies among the various projects in CMakeLists.txt. Can that be done? Thanks and Regards Anupam Mal

[CMake] Specifying Post-build step in CMakeLists.txt

2008-02-08 Thread Malhotra, Anupam
Hi In Visual Studio project properties, we can specify the 'Post-build step' in Project settings. Can these settings be made in CMakeLists.txt? Thanks and Regards Anupam Malhotra The information contained in this electronic mail transmission may be privileged and confidential, and th

Re: [CMake] Changing Project Name

2008-02-08 Thread Sylvain Benner
Hello, Hi I have a project workspace helpers.dsw which I create through CMake. The CMakeLists.txt file for helpers contains commands add_subdirectory(vpcl) add_subdirectory(vthread) vpcl and vthread folders contain their respective CMakeLists.txt files.This setting adds the project named

[CMake] Changing Project Name

2008-02-08 Thread Malhotra, Anupam
Hi I have a project workspace helpers.dsw which I create through CMake. The CMakeLists.txt file for helpers contains commands add_subdirectory(vpcl) add_subdirectory(vthread) vpcl and vthread folders contain their respective CMakeLists.txt files.This setting adds the project named 'vp