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
__
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
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
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
> 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
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.
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
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
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.
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
> 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
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}\"" "\
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
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
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
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?
>
>
>
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
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
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
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
20 matches
Mail list logo