On Thursday 11 June 2009, Hostile Fork wrote:
Is it possible to get CMake to produce something more like:
#define VAR_THAT_IS_ON 1
#define VAR_THAT_IS_OFF 0
On Wed, 17 Jun 2009 23:27:19 +0200,Alexander Neundorf wrote:
Did you try using
#cmakedefine01 VAR_THAT_IS_ON
I think
This has probably already been brought up, but I'm new here :) Will CMake
support generating xcode projects for iphone/iphone-simulator targets in the
near future? We currently use CMake for every target we support except iphone.
Instead, we manually maintain xcode projects for each of our st
2009/6/19 Dmytro Ovdiienko :
>
> BTW, how about to add to CMake posibility to create symbolic/hard links?
You may already use -E create_symlink old new- create a symbolic
link new -> old
(at least with CMake 2.6.4)
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
ht
Charlie,
Move all your input data files to the resource folder and add following to
the end of CMakeLists.txt
##
# Post-build steps
##
add_custom_command(
TARGET ${PROJECT_NAME}
POST_BUILD
COMMAND ${CMAKE_COMMAN
To cross-compile Qt apps, you still need to be able to run at least uic,
moc, and maybe other tools.
I've done it before (way back when cross-compiling support was first
added to cmake).
What I did was compile Qt for the target platform, and again for the
native platform using the same insta
So, I asked the unix admins to install ncurses-devel and low and behold they
actually did it... cmake 2.6.4 bootstraps, makes, installs nicely now...
thanks for your help.
Would still like to know how to go about customizing the build
environment... I did install the complete ncurses package, head
On Fri, Jun 19, 2009 at 02:07:30PM -0400, Iman Brouwer wrote:
> ADD_CUSTOM_TARGET( addTargets ${CMAKE_COMMAND} -DBUILD_EXTRA_TARGETS=ON
> ${CMAKE_SOURCE_DIR} )
> ADD_CUSTOM_TARGET( removeTargets ${CMAKE_COMMAND} -DBUILD_EXTRA_TARGETS=OFF
> ${CMAKE_SOURCE_DIR} )
>
> The 'extra targets' are all adde
On Fri, Jun 19, 2009 at 09:00:24PM +0200, Hendrik Sattler wrote:
> FindQt4 seems to _completely_ fail for cross-compiling as it depends on
> running qmake. As it finds the hosts qmake executable, all it gets is wrong
> information.
Not sure I understand the problem but you can use CMAKE_PREFIX_P
Hi,
FindQt4 seems to _completely_ fail for cross-compiling as it depends on
running qmake. As it finds the hosts qmake executable, all it gets is wrong
information.
Can this be solved somehow?
Thanks...
HS
___
Powered by www.kitware.com
Visit othe
James Yoo wrote:
I thought I had installed the dev version of ncurses.. which is why I
had to put the headers and libs in a non-standard location in
anycase, if you think I can just use the 32bit bin to compile packages
on a 64bit machine I will give that a try.
What linux distro are yo
I was a bit quick to post. It is a bit more complicated then I thought. I
have two custom targets, one that adds a bunch of targets, the other removes
it. Both work as follows:
ADD_CUSTOM_TARGET( addTargets ${CMAKE_COMMAND} -DBUILD_EXTRA_TARGETS=ON
${CMAKE_SOURCE_DIR} )
ADD_CUSTOM_TARGET( removeTa
Just to follow up with this, according to Apple's Universal Porting
guide when figuring out if the system is big or little endian you
should NOT test for the type of processor but rather have something
like the following:
#if !defined(__APPLE__)
#define HOST_BIGENDIAN @HOST_BIGENDIAN@
#else
I thought I had installed the dev version of ncurses.. which is why I had to
put the headers and libs in a non-standard location in anycase, if you
think I can just use the 32bit bin to compile packages on a 64bit machine I
will give that a try.
thanks,
James
On Fri, Jun 19, 2009 at 1:01 PM,
James Yoo wrote:
awesome, that got me past the bootstrap...
how do I get it to find my ncurses headers and stuff? I've tried
editing CMakeCache.txt, which seems to get it past the "configure"
stage, but make dies...
You need to install the developer version of curses on the machine.
foop
awesome, that got me past the bootstrap...
how do I get it to find my ncurses headers and stuff? I've tried editing
CMakeCache.txt, which seems to get it past the "configure" stage, but make
dies...
[ 45%] Building C object
Source/CursesDialog/form/CMakeFiles/cmForm.dir/fld_arg.o
In file include
Hi all,
I'd like to call the script that forces a reload of visual studio. Could
somebody let me know where it is?
Thanks!
Iman
P.S. I would like to use it in the following situation: we have a lot of
targets that we want to add/exclude easily. Currently, when targets are
added, the visual stud
Charlie Sun wrote:
Because I would need to run the test using ctest, and the test cases
have hard-coded and relative paths configured. If i do an out-of-source
build. Some test cases would fail.
I am also building the project on windows Visual studio, which does not
have the problem with in-the
James Yoo wrote:
Hi,
I'm sure this question has been answered before, but I really did try to
find the answer via yabingle and was utterly unsuccessful... so let me
apologize in advance.
I've never used cmake before but I need to install it so that I can
install Mayavi via VTK.
Do this:
On Fri, Jun 19, 2009 at 06:10:16PM +0200, pjtr hahn wrote:
> # generate source file
> add_custom_command( OUTPUT __phony_target_name
> COMMAND some_command_to_generate
> ARGS -o __my_outfile.cpp
>
> )
Why don't you just do OUTPUT __my_outfile.cpp? That's what OUTPUT is for
-- t
On Fri, Jun 19, 2009 at 05:15:20PM +0200, Marcel Loose wrote:
> Is it really necessary to pull the objects from these static libraries,
> or would it suffice if you would build a new library from all the source
> files that make up your suite of static libraries?
>
> If so, you could simply add a
Hi,
I'm sure this question has been answered before, but I really did try to
find the answer via yabingle and was utterly unsuccessful... so let me
apologize in advance.
I've never used cmake before but I need to install it so that I can install
Mayavi via VTK.
./bootstrap --prefix=$MYINSTALLPRE
Hello,
I have a question concerning the order in that transitiv dependencies
are resolved.
My target depends on a source file. This source file is generated by
an external tool by ADD_CUSTOM_COMMAND.
To to ensure the file is always up to date I used ADD_CUSTOM_COMMAND
with a phony target.
Exampl
Hi Stephane,
Is it really necessary to pull the objects from these static libraries,
or would it suffice if you would build a new library from all the source
files that make up your suite of static libraries?
If so, you could simply add a new library that would depend on all these
source files.
Hi,
As stated in the title, Im trying to create a library from existing ones.
My libraries are in different directories, and I would like, for each one of
them, to extract the objects to some directory and then to put all the
objects in a new static library. I cant figure out a way to do that
Hi,
For some of our code, I need to have an environment variable set, and for
a while I had OpenMP support turned on in Xcode. CMake doesn't support
these things directly, so I wrote a short AppleScript. Use it FWIW.
#! /bin/sh
TABWIDTH=`osascript << ENDOFSCRIPT
tell application "Xcode"
Hello,
CMAKE_CURRENT_LIST_FILE used inside a function that is defined in
A.cmake and included and called in B.cmake gives the path of B.cmake
with 2.6.4 instead of A.cmake which was the previous behaviour in
2.6.3 and the behaviour described in the CMake Wiki.
Is this a bug? What is the correct v
26 matches
Mail list logo