The warning offers a lot of information on how to disable but is it really
intended to get the following warning by default?
--
CMake Warning (dev) at cmake/Definitions.cmake:51 (ADD_DEFINITIONS):
Policy CMP0005 is not set: Preprocessor definition values are now escaped
automatically.
Hi,
I am not clear with this CMakeLists.txt as to how to create it automatically
because i don't know the conventions related to it.
I have a project named test.pro having following files
treemap.cpp
treemap.h
main.cpp
Libraries i am using are qt4, qt3support. The treemap.cpp comes from KDE
sou
Daniel Blezek wrote:
Hi Mike,
Here is my actual add_executable call.
add_executable ( Sumatra ${GUI_TYPE} ${SumatraSource} ${SumatraUISHeaders}
${SumatraMOCSource} ${SumatraResources} )
I may try swizzling the order around,
Thanks,
-dan
Sounds like a bug. If you could create a very small
I have a project that uses wxWidgets and in particular the stc module (in
the contrib folder). How do I specify the stc module for wxWidgets? I
tried the following the line in my CMakeLists.txt:
find_package(wxWidgets REQUIRED stc core base)
However, I get the following error:
Could NOT find w
I was able to use this example to successfully build a standalone
application. Many thanks!
One thing: I had to set EXECUTABLE_OUTPUT_PATH in my CMakeLists.txt
file -- otherwise when it built the install scripts that variable was
empty and it wasn't finding my application at all.
And with CMake 2
Hi Mike,
Here is my actual add_executable call.
add_executable ( Sumatra ${GUI_TYPE} ${SumatraSource} ${SumatraUISHeaders}
${SumatraMOCSource} ${SumatraResources} )
I may try swizzling the order around,
Thanks,
-dan
On 4/29/09 3:17 PM, "Michael Jackson" wrote:
> You might try the following
You might try the following:
add_executable ( Sumatra ${SumatrSources} ${SumatraUISHeaders} )
and see what happens.
Here is a snippet from one of my own projects:
# -- Run MOC and UIC on the necessary files
QT4_ADD_RESOURCES( Generated_RC_SRCS ${ModelEditor_RCS} )
# this will run uic on .
> -Original Message-
> From: Tyler Roscoe [mailto:ty...@cryptio.net]
> Sent: 29 April 2009 19:50
> To: Hicham Mouline
> Cc: cmake@cmake.org
> Subject: Re: [CMake] header-only project for VS2005
>
> On Wed, Apr 29, 2009 at 07:27:05PM +0100, Hicham Mouline wrote:
> > I use cmake to generate
On Wed, Apr 29, 2009 at 09:23:15PM +0200, Jesper Eskilson wrote:
> * Open VS2005 + a solution generated by CMake
> * Modify one of the CMakeLists.txt files.
> * Rebuild solution
> * Observed behavior: ZERO_CHECK reruns CMake, but VS2005 does not detect
> that the project files has changed until t
On Wed, Apr 29, 2009 at 08:33:56PM +0100, Hicham Mouline wrote:
> The thing is, this is the dir structure for e.g.
>
> Lib1 (library with source files)
> + cmakelists.txt
> +
> Lib2 (header only, contains template functions, no source files)
> +
> +
>
> If I add the headers to Lib1' cmakelists.t
Sorry if this has been discussed before, but I couldn¹t find anything in
Google.
When building with XCode and Qt, I have to build twice when I change my .ui
files in QtDesigner. Apparently the build order is wrong? The first build
re-generates the ui_*.h files, but doesn¹t trigger the dependenci
Hi,
I'm having trouble getting the automatic project file reloading in
Visual Studio 2005 to work when running under Vista (Home Premium
64-bit). Reproduce:
* Open VS2005 + a solution generated by CMake
* Modify one of the CMakeLists.txt files.
* Rebuild solution
* Observed behavior: ZERO_CHE
On Wed, Apr 29, 2009 at 07:27:05PM +0100, Hicham Mouline wrote:
> I use cmake to generate a VS2005 solution as well as linux/g++ makefiles.
> I have a directory containing headers only and subdirs also with headers
> only,
> However I wish to display 1 project for that directory, and filters 1 for
Hello,
I use cmake to generate a VS2005 solution as well as linux/g++ makefiles.
I have a directory containing headers only and subdirs also with headers
only,
However I wish to display 1 project for that directory, and filters 1 for
each of the subdirs.
There is nothing to build for that dir, but
James Bigler wrote:
Thanks for the suggestion. word-at-point works better than my hand
rolled code.
Here's the updated version. I also fixed a slight annoyance where if
the help command output was short enough it would print the outout to
both the help buffer and the minibuffer.
I'm also
I have a fairly complex library with a bunch of small pieces scattered
throughout subdirectories.
Each subdirectory has its own CMakeLists.txt. This is nice because the
list of .cpp files for each subdirectory is right there in the
subdirectory, and because these subdirectories behave just like a
Thanks for the suggestion. word-at-point works better than my hand rolled
code.
Here's the updated version. I also fixed a slight annoyance where if the
help command output was short enough it would print the outout to both the
help buffer and the minibuffer.
I'm also open to additional suggest
On Wednesday 29 April 2009, Adolfo Rodríguez wrote:
> Hello,
>
> I'm using the COMPONENT option of the install command, and found myself not
> knowing how to invoke the installation of only one component. Browsing the
> list's archives, I found a 2006 post [1] that suggests doing the following:
>
>
Hi Andreas,
The thing is that I was hoping that I would not have to check explicitly
for any missing arguments to DEPENDS. But of course it is very wise to
check and report this error. It was more that I was baffled by the
behaviour of foreach(). I'll have to work around this feature ;-)
Best reg
I'm building fortran executables that run on a web server. The
occasional bug gets hit and I want to have traceback information
available so that I can take a guess at what went wrong.
In order to get traceback information in, I have to have incremental
linking turned off which doesn't see
On 29.04.09 14:58:00, Marcel Loose wrote:
> Hi Andreas,
>
> Seems we disagree about the intuitiveness of the API. Maybe I've done
> too much C/C++ programming ;-)
Hmm, I'm doing mostly C++ as well :)
> I stumbled upon this problem while I was trying to parse the input
> arguments to a macro(add_
Hi Andreas,
Seems we disagree about the intuitiveness of the API. Maybe I've done
too much C/C++ programming ;-)
I stumbled upon this problem while I was trying to parse the input
arguments to a macro(add_package _name). This macro can be used as
follows: add_package(name [version] [DEPENDS depen
On 29.04.09 13:56:12, Marcel Loose wrote:
> Hi all,
>
> foreach(cnt RANGE 3 1)
> message(STATUS "${cnt}")
> endforeach(cnt RANGE 3 1)
>
> produces the output
> -- 3
> -- 2
> -- 1
>
> Apparently, CMake decides to count backward whenever stop > start.
>
> I find this a little counter-intuitive;
Hi all,
foreach(cnt RANGE 3 1)
message(STATUS "${cnt}")
endforeach(cnt RANGE 3 1)
produces the output
-- 3
-- 2
-- 1
Apparently, CMake decides to count backward whenever stop > start.
I find this a little counter-intuitive; counting now starts at stop and
stops at start (confusing isn't it).
Are you using Visual Studio on Windows?
Do you care if the solution is portable to other build systems?
What you want to do is possible, but probably not very easy.
The problem is that CMake assumes you will build/install/package everything
for either a Debug build or a Release build. (In make fi
Hi James,
your version for showing documentation is surely much nicer than mine.
One minor tip: Instead of your function cmake-find-word you could use
the function word-at-point coming from the package thingatpt, which does
exactly, what you need. This package is part of the current Emacs
distribu
Hello,
I'm using the COMPONENT option of the install command, and found myself not
knowing how to invoke the installation of only one component. Browsing the
list's archives, I found a 2006 post [1] that suggests doing the following:
make preinstall && cmake -DCOMPONENT=foo -P cmake_install.cmake
When using INSTALL its possible to first build with release and then debug
into the same target directory, but with PACKAGE this is not possible.
First I build with release I get only release libraries into an installer
(running under windows using NSIS)
second, if I build with debug, I get a new o
28 matches
Mail list logo