Is it possible to set the prefix and suffix to "lib" and ".a" for all
libraries and ".elf" suffix to all executables?
As mentioned in an earlier mail, I am having trouble with the executable
trying to link to libraries with .lib suffix.
Warm regards,
Kishore
__
> > Assembly files explicitly given as source files for a target are
> > completely ignored. From google searches, it seems to be a known
issue
> > and the solution lies with adding custom commands.
> >
> > I am not familiar with adding custom commands. And thus have
assembly
> > files assembled be
Philip Lowman wrote:
> I'm trying to facilitate compiling the same source file once with a
> STATIC_BUILD preprocessor statement defined to 1 and once with it
> defined to 0. I can't seem to figure out a way to do this, however.
Nevermind, I found a way to do this using the COMPILE_FLAGS option t
Eric Noulard wrote:
2007/3/19, Philip Lowman <[EMAIL PROTECTED]>:
I noticed when using ADD_LIBRARY to compile both static and shared
simultaneously that CMake will compile the source code twice once with
-fPIC (for shared build) and once without.
[...]
Is this even possible to do within CMake
Hi,
I'm trying to facilitate compiling the same source file once with a
STATIC_BUILD preprocessor statement defined to 1 and once with it
defined to 0. I can't seem to figure out a way to do this, however.
It appears that the only options I have which are ADD_DEFINITIONS and
SET_SOURCE_FILE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben Ratzlaff wrote:
> I have found that if I rename my .c files to .C then cmake does not emit
> the XML in the .vsproj to change the build mode.
.C is a c++ file name extension.
- --
Filipe Sousa
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (
I have found that if I rename my .c files to .C then cmake does not emit the
XML in the .vsproj to change the build mode.
On 3/20/07, Ben Ratzlaff <[EMAIL PROTECTED]> wrote:
It did not work for me
I have also tried:
SET (CMAKE_C_SOURCE_FILE_EXTENSIONS "")
SET (CMAKE_CXX_SOURCE_FILE_EXT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben Ratzlaff wrote:
> When creating a visual studio 2005 project, I need to be able to compile
> .c files as a c++ (/FP switch). Is there any way to achieve this outside
> of renaming the files?
does it work with SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /F
When creating a visual studio 2005 project, I need to be able to compile .c
files as a c++ (/FP switch). Is there any way to achieve this outside of
renaming the files?
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Am Dienstag 20 März 2007 08:49 schrieb Alexander Neundorf:
> > Although there is a good module for QT4, it is incomplete. Qt also comes
> > with the tools lupdate and lrelease but there are not macros for them. I
> > wrote two (one for each tool) but having this in FindQt4.cmake seems
> > more logi
Bill Hoffman wrote:
Matthew Woehlke wrote:
Bill Hoffman wrote:
OK, this is a bug that will be fixed in 2.4.7. It is already in the
branch in CVS, but there is no official release yet.
If you can build from source, you can check out with -r CMake-2-4, to
get the branch source code. If that do
Pascal Fleury wrote:
So it will in effect "automatically add the current source dir and current
binary dir to the include directories in every directory" as the doc says.
However, the *current* directory has a different value when cmake is
processing project/src/CMakeLists.txt than when proce
Matthew Woehlke wrote:
Bill Hoffman wrote:
OK, this is a bug that will be fixed in 2.4.7. It is already in the
branch in CVS, but there is no official release yet.
If you can build from source, you can check out with -r CMake-2-4, to
get the branch source code. If that does not work for yo
Bill Hoffman wrote:
Matthew Woehlke wrote:
(For some reason, your reply is not showing up on gmane :-(.)
It should be there now.
Yup, it finally showed... an hour later. :-)
CMake 2.4.6.
I was able to achieve the effect I want with ADD_SUBDIRECTORY (bummer
that not taking multiple subdir
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Kishore, Jonnalagadda (IE10)
> Sent: Wednesday, March 21, 2007 1:28 AM
> To: cmake@cmake.org
> Subject: [CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX
>
> My setup:
>
> Project/CMakeLists.tx
My setup:
Project/CMakeLists.txt:
ADD_SUBDIRECTORY(dir)
LINK_LIBRARIES(mylib)
ADD_EXECUTABLE(myexec main.c)
Project/dir/CMakeLists.txt:
ADD_LIBRARY(mylib lib.c)
SET_TARGET_PROPERTIES(mylib
PROPERTIES
PREFIX li
Matthew Woehlke wrote:
(For some reason, your reply is not showing up on gmane :-(.)
It should be there now.
CMake 2.4.6.
I was able to achieve the effect I want with ADD_SUBDIRECTORY (bummer
that not taking multiple subdirs, although it would be trivial to
macro-ize that) by removing EXCL
(Trying again as this bounced...)
Bill Hoffman wrote:
Matthew Woehlke wrote:
Matthew Woehlke wrote:
Matthew Woehlke wrote:
I have a project with some Doxygen doc that has examples. I want to
add a non-default target to build the examples. I tried this:
src/CMakeLists.txt:
ADD_CUSTOM_TARGET(
Matthew Woehlke wrote:
Matthew Woehlke wrote:
Matthew Woehlke wrote:
I have a project with some Doxygen doc that has examples. I want to
add a non-default target to build the examples. I tried this:
src/CMakeLists.txt:
ADD_CUSTOM_TARGET(examples)
src/examples/CMakeLists.txt:
MACRO(ADD_EXAMPL
[EMAIL PROTECTED] wrote:
> Hello,
>
> I am discovering CMake and have ported a qmake Qt4 project to CMake.
>
> I was successful in doing so with Debian GNU/Linux and when I went to winxp
> (Mingw32) I found the following:
I had to patch to prevent a segmentation fault (linux qt 4.2.3 gcc 4.1.1
> Assembly files explicitly given as source files for a target are
> completely ignored. From google searches, it seems to be a known issue
> and the solution lies with adding custom commands.
>
> I am not familiar with adding custom commands. And thus have assembly
> files assembled before build
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
dieter oberkofler wrote:
> I have finally migrated a rather large project to CMake and really like it
> but still have a few open issues, that I hope to solve with your help.
>
> Here comes the first ones:
>
> 1) Is there a way to limit the dependenc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vitor Vasconcelos Araujo Silva wrote:
> Hello all,
>
> I'm experiencing a problem in EXECUTE_PROCESS command.
>
> My test set needs some image files to execute. On Linux, it works fine
> with "make test" because I use the sam
Matthew Woehlke wrote:
Matthew Woehlke wrote:
I have a project with some Doxygen doc that has examples. I want to
add a non-default target to build the examples. I tried this:
src/CMakeLists.txt:
ADD_CUSTOM_TARGET(examples)
src/examples/CMakeLists.txt:
MACRO(ADD_EXAMPLE name)
ADD_EXECUTAB
Hello all,
does CMake allow the creation of a UNICODE project file for VisualStudio
2005? Precisely i need that the application does not define _MBCS symbol,
but the _UNICODE and UNICODE ones, or that the character set is not "Use
Multi-Byte Character Set" but instead it is "Use Unicode Cha
As I may have mentioned before, I am cross compiling and so far i seem
to be doing OK.
To enable cross compiling I have the macro
MACRO(ENABLE_CROSSCOMPILE)
SET (CMAKE_SKIP_COMPATIBILITY_TESTS 1)
SET (CMAKE_C_COMPILER_WORKS 1)
SET (CMAKE_CXX_COMPILER_WORKS 1)
SET (
Assembly files explicitly given as source files for a target are
completely ignored. From google searches, it seems to be a known issue
and the solution lies with adding custom commands.
I am not familiar with adding custom commands. And thus have assembly
files assembled before building a target.
Matthew Woehlke wrote:
I have a project with some Doxygen doc that has examples. I want to add
a non-default target to build the examples. I tried this:
src/CMakeLists.txt:
ADD_CUSTOM_TARGET(examples)
src/examples/CMakeLists.txt:
MACRO(ADD_EXAMPLE name)
ADD_EXECUTABLE(${name} EXCLUDE_FROM_
When and under what conditions are the cache variable read?
In the top level CMakeLists.txt of my project I have the following
lines;
IF(NOT ARCH)
MESSAGE(STATUS "Setting ARCH to x86")
SET(ARCH "x86" CACHE STRING
"Choose the architecture, options are:
${SUPPORTED_ARCHS
Hi all,
As you may know, a Universal Binary on Mac OS X is an executable that
contains both PowerPC and Intel object code. Ordinarily, when you
launch a process the OS runs the PPC code on PPC machines and the Intel
code on Intel machines. However, Intel machines can also run PPC code
via a behi
Hello all,
I'm experiencing a problem in EXECUTE_PROCESS command.
My test set needs some image files to execute. On Linux, it works fine
with "make test" because I use the same directory to source code and to
build.
On Windows (Visual Studio) the file is built in the
I have finally migrated a rather large project to CMake and really like it
but still have a few open issues, that I hope to solve with your help.
Here comes the first ones:
1) Is there a way to limit the dependencies that CMake builds by for example
excluding directories and limit the level of re
Hello,
I am discovering CMake and have ported a qmake Qt4 project to CMake.
I was successful in doing so with Debian GNU/Linux and when I went to winxp
(Mingw32) I found the following:
1) I could build the project without a single warning;
2) I could run the executable;
3) I could use some fun
2007/3/19, Philip Lowman <[EMAIL PROTECTED]>:
I noticed when using ADD_LIBRARY to compile both static and shared
simultaneously that CMake will compile the source code twice once with
-fPIC (for shared build) and once without.
[...]
Is this even possible to do within CMakeLists.txt files witho
On Tuesday 20 March 2007 10:00:58 Kishore, Jonnalagadda (IE10) wrote:
>
> So by that you mean that every folder where a CMakeLists.txt is
> processed, includes itself in the search path but not the other folders
> where the other CMakeLists.txt were processed!?
That's my understanding, yes.
> I
> On Tuesday 20 March 2007 07:07:35 Kishore, Jonnalagadda (IE10) wrote:
> > > Kishore, Jonnalagadda (IE10) wrote:
> > This is now a little confusing especially, when the description says
"
> > automatically add CMAKE_CURRENT_SOURCE_DIR and
CMAKE_CURRENT_BINARY_DIR
> > to the include directories _in
On Tuesday 20 March 2007 07:07:35 Kishore, Jonnalagadda (IE10) wrote:
> > Kishore, Jonnalagadda (IE10) wrote:
> This is now a little confusing especially, when the description says "
> automatically add CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR
> to the include directories _in every dir
37 matches
Mail list logo