Hi all,
I have a folder mainfolder with sufolder innerfolder which has soem java
files. i want to create it class files. for that iam using add_sutom_command
to run the javac command but still my class files are not generated.
The content of cmakelist of mainfolder is:
project(mainfolder)
Hi, Philip,
I tested your script FindGTK2.cmake on my computer, I got some problems, but
I fixed them. The problem is that I install gtkmm only for current user, so
the path can not be found at
[HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path], so I add some lines for
It looks like the projects flags.make is updated every time any compile flag or
definition changes, and every object file in the project depends on flags.make.
In the case of properties set using set_property() the only part of the
flags.make that changes is the comment, so maybe it would be
2009/3/20 Mattias Helsing helsin...@gmail.com
Hi Ankit,
The set command doesn't work like you think.
set(X a b c) creates a list called X with contents a;b;c. So you have the
list
JAVADIST with contents
(/myjava/jdk/1.4.2/Linux/;XERCESDIR;/myjava/XML4J/4.3.4)
try
set(JAVADIST
2009/3/20 Marcel Loose lo...@astron.nl:
Hi Erk,
On Thu, 2009-03-19 at 15:37 +0100, Eric Noulard wrote:
2009/3/19 Marcel Loose lo...@astron.nl:
Hi Eric,
I used make test first, but that failed the same way ctest fails.
However, ctest -V at least gave me some more (useful) output.
You
Hi all,
Can anybody tellme where i can find cmake docs that describe about various
command and other things for building the java files. it seems that for java
compiler flags and other command are diff. as we have for c and cpp files. i
wan tcomplete inf. related to it.
Ankit
2009/3/20 Philip Lowman phi...@yhbt.com:
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
mike.jack...@bluequartz.net wrote:
I am trying to find a nice portable solution for generating version
strings based on the date (seems reasonable). I even have my own c++ code
that can generate the
2009/3/20 Marcel Loose lo...@astron.nl:
Because you ask for it :-)
when calling ctest in add_test.
Ok, I see.
But how then, should I read the example from section 10.5 from the
Mastering CMake book? Here's a quote from page 167.
qoute
For example, consider the following ADD_TEST command
Hi Erk,
Thanks for your prompt reply. Your example works great.
In the mean time, I found another way to solve my problem:
add_custom_target(check DEPENDS t_hello)
add_custom_command(TARGET t_hello POST_BUILD
COMMAND ${CMAKE_CTEST_COMMAND} t_hello)
But I think I prefer your solution; it saves
2009/3/20 Mattias Helsing helsin...@gmail.com
Hi Ankit,
I have no xp with cmake for java. I was just pointing out my first
immediate reaction to your script code.
Perhaps you should try things in smaller scale, e.g. try to create a
custom_command that compiles one java file. Also - during
Thanks for the idea, I'll have a look on what they did.
In the meantime, if some of you have an idea...
I must admit I would have preferred a simple/clever solution than
reimplementing myself the cmake dependency management :-(
Alexandre
-Original Message-
From:
Hi Erk,
And now, of course, there's the catch. Things work great for my toy
project with only one test program. But my real project has more than
one test program. How should I now create the custom target 'check'? Do
I need to keep a list of all test programs? That would be quite
cumbersome,
Hi Erk,
On Fri, 2009-03-20 at 10:06 +0100, Eric Noulard wrote:
add_executable(t_hello t_ EXCLUDE_FROM_ALL hello.cpp)
add_test(t_hello t_hello)
add_custom_target(check
COMMAND ${CMAKE_BUILD_TOOL} test
DEPENDS t_hello)
I stumbled
On Fri, Mar 20, 2009 at 2:38 AM, Dancefire dancef...@gmail.com wrote:
Hi, Philip,
I tested your script FindGTK2.cmake on my computer, I got some problems,
but I fixed them. The problem is that I install gtkmm only for current user,
so the path can not be found at
On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey rcdai...@gmail.com wrote:
Hi,
I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
when I create unit tests, they are not added as dependencies in the solution
containing all of the unit test projects + the RUN_TESTS project.
Hi all,
I am creating a library through add_library command of java files.
Now i want to link it with some jar files which contain some classes which
is needed to build that library.
target_link_libraries is not working in this case.
How to do it?..
Ankit
Hello,
2009/3/20 ankit jain ankitgu...@gmail.com:
Hi all,
I am creating a library through add_library command of java files.
Now i want to link it with some jar files which contain some classes which
is needed to build that library.
target_link_libraries is not working in this case.
What
2009/3/20 Andreas Pokorny andreas.poko...@gmail.com
Hello,
2009/3/20 ankit jain ankitgu...@gmail.com:
Hi all,
I am creating a library through add_library command of java files.
Now i want to link it with some jar files which contain some classes
which
is needed to build that
2009/3/20 Marcel Loose lo...@astron.nl:
Hi Erk,
On Fri, 2009-03-20 at 10:06 +0100, Eric Noulard wrote:
add_executable(t_hello t_ EXCLUDE_FROM_ALL hello.cpp)
add_test(t_hello t_hello)
add_custom_target(check
COMMAND ${CMAKE_BUILD_TOOL} test
2009/3/20 Philip Lowman phi...@yhbt.com:
On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey rcdai...@gmail.com wrote:
Hi,
I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
when I create unit tests, they are not added as dependencies in the solution
containing all of the
On Fri, Mar 20, 2009 at 10:52 PM, Philip Lowman phi...@yhbt.com wrote:
On Fri, Mar 20, 2009 at 2:38 AM, Dancefire dancef...@gmail.com wrote:
Hi, Philip,
I tested your script FindGTK2.cmake on my computer, I got some problems,
but I fixed them. The problem is that I install gtkmm only for
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman phi...@yhbt.com:
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
mike.jack...@bluequartz.net wrote:
I am trying to find a nice portable solution for generating version
strings based on the date (seems reasonable). I
Perfect!
I now use add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) and
that indeed solves the parallel build issue.
And yes, I have MAKEFLAGS set to -j4.
Thanks,
Marcel
On Fri, 2009-03-20 at 13:44 +0100, Eric Noulard wrote:
2009/3/20 Marcel Loose lo...@astron.nl:
Hi Erk,
On Fri,
On Fri, Mar 20, 2009 at 7:02 AM, Philip Lowman phi...@yhbt.com wrote:
On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey rcdai...@gmail.comwrote:
Hi,
I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
when I create unit tests, they are not added as dependencies in the
On Friday 20 March 2009 13:26:36 Michael Jackson wrote:
After all of this I'll probably put in a feature request for this
functionality to be a part of CMake. Actually, if we could just get
the following variables set by CMake it would be great:
CMAKE_CURRENT_YEAR
CMAKE_CURRENT_MONTH
Michael Jackson wrote:
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman phi...@yhbt.com:
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
mike.jack...@bluequartz.net wrote:
I am trying to find a nice portable solution for generating version
strings based on the
On Mar 20, 2009, at 10:12 AM, Bill Hoffman wrote:
Michael Jackson wrote:
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman phi...@yhbt.com:
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
mike.jack...@bluequartz.net wrote:
I am trying to find a nice portable
Hi Robert,
I am planning to use (but haven't implemented and tried yet):
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
to define a custom 'check' target (as with GNU Autotools)
- add_executable(testprog EXCLUDE_FROM_ALL ...)
for each test program
- add_dependencies(check
Michael Jackson wrote:
I don't think you could do this as a set of variables. It would be
better as some sort of command. file(GETDATE result) or something.
-Bill
Well, I could but I am really interested in _why_ I would _not_ want to?
Besides the obvious that the variables would
2009/3/20 Marcel Loose lo...@astron.nl:
Perfect!
Ok fine.
I now use add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) and
that indeed solves the parallel build issue.
And yes, I have MAKEFLAGS set to -j4.
Now that you make check is working, may be it's time to describe
the way to go
Hi Erk,
Good suggestion!
I'll do that, once I am sure this is really the way to go working for a
moderately sized project.
Marcel.
On Fri, 2009-03-20 at 16:34 +0100, Eric Noulard wrote:
2009/3/20 Marcel Loose lo...@astron.nl:
Perfect!
Ok fine.
I now use add_custom_target(check
2009/3/20 Robert Dailey rcdai...@gmail.com:
On Fri, Mar 20, 2009 at 7:02 AM, Philip Lowman phi...@yhbt.com wrote:
On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey rcdai...@gmail.com
wrote:
This would be a nice thing to have. I had someone complain at work the
other day that they had to run
How do you tell Cmake to add a compiler flag to a project's Debug target?
In a project I'm trying to fix (OpenSceneGraph) it looks like Cmake
generates an Xcode project file containing all four of the build types:
Debug, Release, ReleaseMinSize, and RelWithDebInfo. These types can be
selected
Actually, if someone on OS X decides to generate Makefiles then
CMAKE_BUILD_TYPE can be very important.
You can simply do what you are doing and it _should_ work. The order
of operations in a CMake file, like any other language, is important.
It just depends on what is after those lines
CMAKE_BUILD_TYPE is irrelevant with build systems that handle multiple
configurations (like Xcode and Visual Studio). Makefile based systems still
need CMAKE_BUILD_TYPE defined to select the type of build.
The flags you are setting need double quotes to work as you intend them,
like this:
On my windows XP box, I have VC6, 2003, 2005 and 2008 installed and I
have selected VS2005 for the build however all the CMake checks are
happening for VC6. It does not seem to cause any harm but what about
header and library differences between the compilers? I mean all the
checks for stl ... are
John Drescher schrieb:
On my windows XP box, I have VC6, 2003, 2005 and 2008 installed and I
have selected VS2005 for the build however all the CMake checks are
happening for VC6. It does not seem to cause any harm but what about
header and library differences between the compilers? I mean all
John Drescher schrieb:
On Fri, Mar 20, 2009 at 3:02 PM, Christian Ehrlicher
ch.ehrlic...@gmx.de wrote:
John Drescher schrieb:
On my windows XP box, I have VC6, 2003, 2005 and 2008 installed and I
have selected VS2005 for the build however all the CMake checks are
happening for VC6. It does not
Makes sense. So then I should be opening cmake-gui from the compiler's
command prompt instead of the shortcut on the desktop. Not a big deal
I am one to use the command prompt all the time windows or linux..
I'm not very familar with cmake-gui but I don't see another option.
Thanks. You got
John Drescher wrote:
Makes sense. So then I should be opening cmake-gui from the compiler's
command prompt instead of the shortcut on the desktop. Not a big deal
I am one to use the command prompt all the time windows or linux..
I'm not very familar with cmake-gui but I don't see another
If you use the IDE generators for CMake, you do not need to modify the
environment at all. It is only when using nmake or make, that you need an
environment that is setup to run the compiler. If you do want to use
nmake, VS 2003 and above have command prompts that can be found in the
On Fri, Mar 20, 2009 at 3:49 PM, John Drescher dresche...@gmail.com wrote:
If you use the IDE generators for CMake, you do not need to modify the
environment at all. It is only when using nmake or make, that you need an
environment that is setup to run the compiler. If you do want to use
On Fri, Mar 20, 2009 at 10:30 AM, Eric Noulard eric.noul...@gmail.comwrote:
You should file a bug report with ype feature request:
http://public.kitware.com/Bug/my_view_page.php
Feature request filed here:http://public.kitware.com/Bug/view.php?id=8774
John Drescher wrote:
On Fri, Mar 20, 2009 at 3:49 PM, John Drescher dresche...@gmail.com wrote:
If you use the IDE generators for CMake, you do not need to modify the
environment at all. It is only when using nmake or make, that you need an
environment that is setup to run the compiler. If
But then with this setup cmake-2.6.3 is scanning my vc6 headers and
libs to generate vc2005 projects.
This has not caused me any problems but I am unsure if checks like
partial template specification are being used or is this part of cmake
not really used if I use the .sln and vcproj that
On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose lo...@astron.nl wrote:
Hi Robert,
I am planning to use (but haven't implemented and tried yet):
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
to define a custom 'check' target (as with GNU Autotools)
- add_executable(testprog
On Fri, Mar 20, 2009 at 4:50 PM, Robert Dailey rcdai...@gmail.com wrote:
On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose lo...@astron.nl wrote:
Hi Robert,
I am planning to use (but haven't implemented and tried yet):
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
to define a
Is it possible to install an executable's name while installing?
The install(TARGETS) function doesn't include a rename option.
If I use install(FILES) I have to somehow figure out which executable
I can't get the path of the executable out with VS, because I don't
know which configuration I'm
John Drescher wrote:
But then with this setup cmake-2.6.3 is scanning my vc6 headers and
libs to generate vc2005 projects.
This has not caused me any problems but I am unsure if checks like
partial template specification are being used or is this part of cmake
not really used if I use the .sln
If you select Visual Studio 8 2005 as a generator, it should not use VC6.
Please make sure you start with an empty binary directory, with no
CmakeCache.txt file.
I just created a new build tree selected vs2005 and it still used the
vc6 compiler:
Check for working C compiler: C:/Program
Another argument for a command is that the user may want...
Military time (24 hr)
UTC instead of local timezone
Months/Dates/Hours with leading 0's
By making it a command it is extensible and customizable. If it's a set of
variables you've already limited some of your options.
.. Original
John Drescher wrote:
On Fri, Mar 20, 2009 at 5:42 PM, John Drescher dresche...@gmail.com wrote:
If you select Visual Studio 8 2005 as a generator, it should not use VC6.
Please make sure you start with an empty binary directory, with no
CmakeCache.txt file.
I just created a new build tree
OK, I am pretty sure (99.9%) it is not actually using that compiler for the
tests. The CMAKE_CXX_COMPILER value is not actually used by the visual
studio IDE projects. However, that does seem to be some disturbing
output I need to change the platform files so that the cl full path is
53 matches
Mail list logo