[CMake] Patch to FindBoost.cmake.

2007-07-24 Thread Václav Haisman
Hi,
the FindBoost.cmake does not detect Boost installed by binary package
from the Boost Consulting. The patch attached to
http://www.cmake.org/Bug/bug.php?op=showbugid=4881pos=0 fixes it for me.

--
VH



signature.asc
Description: OpenPGP digital signature
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Patch to FindBoost.cmake.

2007-07-24 Thread Andreas Schneider
Václav Haisman wrote:
 Hi,

Hello,

 the FindBoost.cmake does not detect Boost installed by binary package
 from the Boost Consulting. The patch attached to
 http://www.cmake.org/Bug/bug.php?op=showbugid=4881pos=0 fixes it for me.

I've rewritten the FindBoost.cmake from scratch some time ago. And we
have improved it at OpenWengo. I suggest to ship this version in CMake.

http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake

Yes, I would maintain the Module.

-- andreas

 
 --
 VH
 
 
 
 
 
 ___
 CMake mailing list
 CMake@cmake.org
 http://www.cmake.org/mailman/listinfo/cmake

-- 
http://www.cynapses.org/ - cybernetic synapses






signature.asc
Description: OpenPGP digital signature
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Patch to FindBoost.cmake.

2007-07-24 Thread gga
Andreas Schneider wrote:
 
 I've rewritten the FindBoost.cmake from scratch some time ago. And we
 have improved it at OpenWengo. I suggest to ship this version in CMake.
 
 http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake
 

+1 for this.  This is without a doubt the best FindBoost.cmake I've seen
so far.

-- 
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack for making .deb files?

2007-07-24 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian Convey wrote:
 I need my CMake-based project to produce Debian packages in the
 near-term, and RPMs probably a few months from now.

Try Medhi's reworked RpmBuild and DpkgDeb macros.

http://www.cmake.org/Wiki/CMakeUserUseDebian#Derived_work

- --
Philip Lowman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpd6ie0tOktX6RKkRAngGAJ49QusxxYVdTbqSDUdVFJmbnsivbwCfcNhZ
+UI7rnmEtp6mpFENjCQhIRo=
=6hke
-END PGP SIGNATURE-
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Patch to FindBoost.cmake.

2007-07-24 Thread Václav Haisman
Andreas Schneider wrote:
 Václav Haisman wrote:
 Hi,
 
 Hello,
 
 the FindBoost.cmake does not detect Boost installed by binary package
 from the Boost Consulting. The patch attached to
 http://www.cmake.org/Bug/bug.php?op=showbugid=4881pos=0 fixes it for me.
 
 I've rewritten the FindBoost.cmake from scratch some time ago. And we
 have improved it at OpenWengo. I suggest to ship this version in CMake.
 
 http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake
 
 Yes, I would maintain the Module.
 
   -- andreas
The script works fine for me. It is definitely better than mine hack.

--
VH




signature.asc
Description: OpenPGP digital signature
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] VC7.1 project files and /TP

2007-07-24 Thread Torsten Martinsen
Hi,
 
I have a library that contains both C++ and C files. For various
reasons, the C files must be compiled as C++. In my CMakeLists.txt file
I have

IF(OPT_DEST_VISUALSTUDIO)
   ADD_DEFINITIONS(-TP)
ENDIF(OPT_DEST_VISUALSTUDIO)
 
This works fine for NMake Makefiles output, but for Visual Studio 7
.NET 2003 the C files are always compiled with /TP (and in the project
file, Compile As is set to Compile as C Code (/TC). Looking at
cmLocalVisualStudio7Generator.cxx, it looks as if this is indeed
hardcoded:

if(strcmp(linkLanguage, C) == 0)
{
flags +=  /TC ;
}
if(strcmp(linkLanguage, CXX) == 0)
{
flags +=  /TP ;
}

I have also tried

SET_SOURCE_FILES_PROPERTIES(
   ${C_SOURCE}
   PROPERTIES COMPILE_FLAGS -TP)

with the same (lack of) result. Any ideas?

-Torsten

This e-mail and any files sent with it contain information that may be 
privileged or confidential and is the property of the GateHouse Group. This 
information is intended solely for the person to whom it is addressed. If you 
are not the intended recipient, you are not authorized to read, print, retain, 
copy, disseminate, distribute, or use the message or any part thereof. If you 
have received this e-mail in error, please notify the sender immediately, and 
delete all copies of this message. In accordance with GateHouse Security 
Policy, e-mails sent or received may be monitored. 
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Patch to FindBoost.cmake.

2007-07-24 Thread Andreas Schneider
Andreas Pakulat wrote:
 On 24.07.07 07:35:34, gga wrote:
 Andreas Schneider wrote:
 I've rewritten the FindBoost.cmake from scratch some time ago. And we
 have improved it at OpenWengo. I suggest to ship this version in CMake.

 http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake

 +1 for this.  This is without a doubt the best FindBoost.cmake I've seen
 so far.
 
 Looks pretty good and would obsolete the FindBoostLibs.cmake in KDE's
 kdevplatform module. There's only one thing I miss: Documentation for
 the individual
 
 BOOST_FOO_LIBRARY
 
 variables, I don't think many people want to link against _all_ boost
 libs.

Committed :)

 
 Andreas
 

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Visual Studio folders

2007-07-24 Thread Sergei Riaguzov

Hi!

How can I emulate Add folder MSVS functionality with CMake? I want to be
able to add a folder without adding another executable or anything like
that.
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Petr Smrčka - plain




Hello to everyone,
I would like to run Continous tests, but before running CountinousTest stage, 
I need to call make install. So I made ctest script, where I set CTEST_COMMAND:
# which ctest command to use for running the dashboard
SET (CTEST_COMMAND  "/usr/bin/ctest -D ${MODEL}Start"
  "/usr/bin/ctest -D ${MODEL}Update"
  "/usr/bin/ctest -D ${MODEL}Configure"
  "/usr/bin/ctest -D ${MODEL}Build"
  "make install"
  "/usr/bin/ctest -D ${MODEL}Test"
  "/usr/bin/ctest -D ${MODEL}Coverage"
  "/usr/bin/ctest -A \"${CTEST_NOTES_FILES}\" -D ${MODEL}Submit")But no results are submitted even if there were updates. If I run just 'ctest -D Continuous' (without running tests), results are normally submitted to Dart. 
Do you have any idea, what am I doing wrong?Thanks for any tip-- 
Petr Smrčka smrcka at 1sig dot cz
První Signální, a.s.
Czech Republic




___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Bill Lorensen

There is no need to do a make install

ctest -D Continuous

updates, configures, builds and runs the tests.

Here is the ctest script that I use for continuous builds under linux:

http://www.itk.org/Testing/Sites/BillsLinuxLaptop/Linux-gcc41-release/20070724-0801-Continuous/Notes.html

Look in your binary tree/Testing/Temporary/ctest.log to see what's
happening.

Bill


On 7/24/07, Petr Smrčka - plain [EMAIL PROTECTED] wrote:


Hello to everyone,

 I would like to run Continous tests, but before running CountinousTest stage,
I need to call make install. So I made ctest script, where I set CTEST_COMMAND:

# which ctest command to use for running the dashboard

SET (CTEST_COMMAND

  /usr/bin/ctest -D ${MODEL}Start
  /usr/bin/ctest -D ${MODEL}Update
  /usr/bin/ctest -D ${MODEL}Configure
  /usr/bin/ctest -D ${MODEL}Build
  make install
  /usr/bin/ctest -D ${MODEL}Test
  /usr/bin/ctest -D ${MODEL}Coverage
  /usr/bin/ctest -A \${CTEST_NOTES_FILES}\ -D ${MODEL}Submit

)

But no results are submitted even if there were updates. If I run just 'ctest 
-D Continuous' (without running tests), results are normally submitted to Dart.
Do you have any idea, what am I doing wrong?

   Thanks for any tip

-- Petr Smrčka smrcka at 1sig dot cz První Signální, a.s. Czech Republic



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

RE: [CMake] VC7.1 project files and /TP

2007-07-24 Thread Torsten Martinsen
Bill Hoffman mailto:[EMAIL PROTECTED] wrote:

 SET_SOURCE_FILES_PROPERTIES( ${C_SOURCE} PROPERTIES LANGUAGE CXX)
 
 It should work in 2.4.7, but the docs for 2.4.7 have not been updated
 to include this, but the code has it.

Thanks, that seems to work perfectly.

-Torsten

This e-mail and any files sent with it contain information that may be 
privileged or confidential and is the property of the GateHouse Group. This 
information is intended solely for the person to whom it is addressed. If you 
are not the intended recipient, you are not authorized to read, print, retain, 
copy, disseminate, distribute, or use the message or any part thereof. If you 
have received this e-mail in error, please notify the sender immediately, and 
delete all copies of this message. In accordance with GateHouse Security 
Policy, e-mails sent or received may be monitored. 
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Petr Smrčka




Hi Bill,
thanks for quick reply, 
but it did not explain, why it is not possible to run Continuous builds
"per partes". 
To be able to test our project continuously, I need to call make
install, because a binary and some other runtime files must be copied
to more than one directory. During the test multiple instances of
binary are called from different directories. That's why I need to
properly install project using 'install' target.
So 'ctest -D Continuous' works as it should, but I'm not able to run
tests. Maybe if 'install' target could be made during making 'all'
target, then 'ctest -D Continuous' would do the work I need.

Is a bug that 
'ctest -D Continuous' 
behaves differently  than 
'ctest -D ContinuousStart  ctest -D ContinuousUpdate
 ctest -D ContinuousConfigure  ctest -D
ContinuousBuild  ctest -D ContinuousSubmit' 
?

Petr

Bill Lorensen wrote:

  There is no need to do a "make install"
   
  ctest -D Continuous
   
  updates, configures, builds and runs the tests. 
   
  Here is the ctest script that I use for continuous builds under
linux:
   
  http://www.itk.org/Testing/Sites/BillsLinuxLaptop/Linux-gcc41-release/20070724-0801-Continuous/Notes.html
  
   
  Look in "your binary tree"/Testing/Temporary/ctest.log to see
what's happening.
   
  Bill
  
 
  On 7/24/07, Petr Smrčka - plain [EMAIL PROTECTED] wrote:
  

Hello to everyone, 


  
  

I would like to run Continous tests, but before running CountinousTest stage, 
I need to call make install. So I made ctest script, where I set CTEST_COMMAND:
# which ctest command to use for running the dashboard

SET (CTEST_COMMAND  "/usr/bin/ctest -D ${MODEL}Start"
  "/usr/bin/ctest -D ${MODEL}Update"
  "/usr/bin/ctest -D ${MODEL}Configure"
  "/usr/bin/ctest -D ${MODEL}Build"
  "make install"
  "/usr/bin/ctest -D ${MODEL}Test"
  "/usr/bin/ctest -D ${MODEL}Coverage"
  "/usr/bin/ctest -A \"${CTEST_NOTES_FILES}\" -D ${MODEL}Submit")But no results are submitted even if there were updates. If I run just 'ctest -D Continuous' (without running tests), results are normally submitted to Dart. 
Do you have any idea, what am I doing wrong?Thanks for any tip-- 
Petr Smrčka smrcka at 1sig dot cz
První Signální, a.s.
Czech Republic



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
  
  
  


-- 
Petr Smrčka smrcka at 1sig dot cz
První Signální, a.s.
Czech Republic




___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio folders

2007-07-24 Thread Alan W. Irwin

On 2007-07-24 15:49+0200 Sergei Riaguzov wrote:


Hi!

How can I emulate Add folder MSVS functionality with CMake? I want to be
able to add a folder without adding another executable or anything like
that.


Try FILE(MAKE_DIRECTORY ...

On Linux that makes a directory at cmake time so I presume it will also make
a folder on windows at cmake time.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio folders

2007-07-24 Thread David Cole

See the cmake function SOURCE_GROUP (search for other messages regarding
this function on this mailing list)...

C:\C:\Program Files\CMake 2.4\bin\cmake.exe --help-command SOURCE_GROUP
cmake version 2.4-patch 7
 SOURCE_GROUP
  Define a grouping for sources in the makefile.

SOURCE_GROUP(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])

  Defines a group into which sources will be placed in project files.
  This is mainly used to setup file tabs in Visual Studio.  Any file
  whose name is listed or matches the regular expression will be placed
  in this group.  If a file matches multiple groups, the LAST group
that
  explicitly lists the file will be favored, if any.  If no group
  explicitly lists the file, the LAST group whose regular expression
  matches the file will be favored.

  The name of the group may contain backslashes to specify subgroups:

SOURCE_GROUP(outer\\inner ...)

  For backwards compatibility, this command is also supports the
format:

SOURCE_GROUP(name regex)


HTH,
David


On 7/24/07, Sergei Riaguzov [EMAIL PROTECTED] wrote:


Hi!

How can I emulate Add folder MSVS functionality with CMake? I want to be
able to add a folder without adding another executable or anything like
that.

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Visual Studio folders

2007-07-24 Thread Brandon Van Every

On 7/24/07, Sergei Riaguzov [EMAIL PROTECTED] wrote:

Hi!

How can I emulate Add folder MSVS functionality with CMake? I want to be
able to add a folder without adding another executable or anything like
that.


Are you looking for something that shows up in the MSVS Solution
Explorer?  Perhaps you want the SOURCE_GROUP command.


Cheers,
Brandon Van Every
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ctest -D ContinuousSubmit is not submiting

2007-07-24 Thread Bill Lorensen

Petr,

According to the cmCTest.cxx file:

 else if ( targ == Continuous )
   {
   this-SetTestModel(cmCTest::CONTINUOUS);
   this-SetTest(Start);
   this-SetTest(Update);
   this-SetTest(Configure);
   this-SetTest(Build);
   this-SetTest(Test);
   this-SetTest(Coverage);
   this-SetTest(Submit);

For vtk and itk we don't do a make install for the continuous test. I guess
I need more details on your project.

Bill

On 7/24/07, Petr Smrčka [EMAIL PROTECTED] wrote:


 Hi Bill,
thanks for quick reply,
but it did not explain, why it is not possible to run Continuous builds
per partes.
To be able to test our project continuously, I need to call make install,
because a binary and some other runtime files must be copied to more than
one directory. During the test multiple instances of binary are called from
different directories. That's why I need to properly install project using
'install' target.
So 'ctest -D Continuous' works as it should, but I'm not able to run
tests. Maybe if 'install' target could be made during making 'all' target,
then 'ctest -D Continuous' would do the work I need.

Is a bug that
'ctest -D Continuous'
behaves differently  than
'ctest -D ContinuousStart  ctest -D ContinuousUpdate  ctest -D
ContinuousConfigure  ctest -D ContinuousBuild  ctest -D
ContinuousSubmit'
?

Petr

Bill Lorensen wrote:

There is no need to do a make install

ctest -D Continuous

updates, configures, builds and runs the tests.

Here is the ctest script that I use for continuous builds under linux:

http://www.itk.org/Testing/Sites/BillsLinuxLaptop/Linux-gcc41-release/20070724-0801-Continuous/Notes.html


Look in your binary tree/Testing/Temporary/ctest.log to see what's
happening.

Bill


On 7/24/07, Petr Smrčka - plain [EMAIL PROTECTED]  wrote:

  Hello to everyone,

   I would like to run Continous tests, but before running CountinousTest 
stage,
 I need to call make install. So I made ctest script, where I set 
CTEST_COMMAND:

 # which ctest command to use for running the dashboard


 SET (CTEST_COMMAND

   /usr/bin/ctest -D ${MODEL}Start
   /usr/bin/ctest -D ${MODEL}Update
   /usr/bin/ctest -D ${MODEL}Configure

   /usr/bin/ctest -D ${MODEL}Build
   make install
   /usr/bin/ctest -D ${MODEL}Test
   /usr/bin/ctest -D ${MODEL}Coverage
   /usr/bin/ctest -A \${CTEST_NOTES_FILES}\ -D ${MODEL}Submit

 )

 But no results are submitted even if there were updates. If I run just 'ctest 
-D Continuous' (without running tests), results are normally submitted to Dart.

 Do you have any idea, what am I doing wrong?

Thanks for any tip

 --
 Petr Smrčka smrcka at 1sig dot cz

 První Signální, a.s.
 Czech Republic


 ___
 CMake mailing list
 CMake@cmake.org
 http://www.cmake.org/mailman/listinfo/cmake



--
Petr Smrčka smrcka at 1sig dot cz
První Signální, a.s.
Czech Republic


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: [CTest] Does add_test suppress the output of ctest?

2007-07-24 Thread Matthew Woehlke

wedekind wrote:

How can I get the output from ctest -V or ctest -VV when running make
test?


This is not the most straight-forward way, but I believe ctest stashes 
the output somewhere in your build dir (I forget exactly where).


--
Matthew
This .sig is false

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack for making .deb files?

2007-07-24 Thread Christian Convey

Thanks Philip.

I noticed that Medhi's DpkgDeb doesn't invoke 'fakeroot', which I
thought was necessary for producing good .deb files.  Do you know how
he gets away without using fakeroot?

- Christian

On 7/24/07, Philip Lowman [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian Convey wrote:
 I need my CMake-based project to produce Debian packages in the
 near-term, and RPMs probably a few months from now.

Try Medhi's reworked RpmBuild and DpkgDeb macros.

http://www.cmake.org/Wiki/CMakeUserUseDebian#Derived_work

- --
Philip Lowman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpd6ie0tOktX6RKkRAngGAJ49QusxxYVdTbqSDUdVFJmbnsivbwCfcNhZ
+UI7rnmEtp6mpFENjCQhIRo=
=6hke
-END PGP SIGNATURE-


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack for making .deb files?

2007-07-24 Thread Christian Convey

So is the convention for hanlding auxiliary packages as follows?

Somewhere near the root of my source code tree, I create a
CMakePackages (or similarly named) directory.  Then I put all of the
auxiliary packages such as DpkgDeb there.  Then I modify my own
CMakeLists files to specify that the CMakePackages directory is one
of the directories searched when I issue INCLUDE(...) commands?

Thanks,
Christian

On 7/24/07, Philip Lowman [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian Convey wrote:
 I need my CMake-based project to produce Debian packages in the
 near-term, and RPMs probably a few months from now.

Try Medhi's reworked RpmBuild and DpkgDeb macros.

http://www.cmake.org/Wiki/CMakeUserUseDebian#Derived_work

- --
Philip Lowman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpd6ie0tOktX6RKkRAngGAJ49QusxxYVdTbqSDUdVFJmbnsivbwCfcNhZ
+UI7rnmEtp6mpFENjCQhIRo=
=6hke
-END PGP SIGNATURE-


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake 2.6

2007-07-24 Thread Andy Dingfelder
The example on http://www.cmake.org/Wiki/CMake_Cross_Compiling says that
this is supported by CMake starting with version 2.6.0 (not yet released
as of July 2007).

Where can one download v2.6 to try this ?






WARNING: This email and any attachments may be confidential and/or
privileged. They are intended for the addressee only and are not to be read,
used, copied or disseminated by anyone receiving them in error.  If you are
not the intended recipient, please notify the sender by return email and
delete this message and any attachments.

The views expressed in this email are those of the sender and do not
necessarily reflect the official views of Landcare Research.  

SirTrack
http://www.sirtrack.com



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cmake on mac to generate xcode project

2007-07-24 Thread Brandon Van Every

On 7/24/07, Anders Sandholm [EMAIL PROTECTED] wrote:

Hi

small question. I am using cmake on mac and generate xcode project
with it, but when I generate the project fil it is place in the
directory where the source code i located, and I want to specify
another directory where I want the project file (like the output
directory on windows), can I do this? I check the docs and wiki but
couldn't find anything.


Is there some reason the CMake FAQ doesn't apply?
http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees

Cheers,
Brandon Van Every
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] need help with modified helloworld

2007-07-24 Thread Andy Dingfelder
I'm wondering if someone could help me with a simple change to the
helloworld example

I have gotten the helloworld to work with either windows output or
linux output, by changing the base CMakeLists.txt file but am struggling
on how to build both

the current example is set up as follows:

CMakeExample/Hello
CMakeExample/Demo
CMakeExample/Build
CMakeExample/CmakeLists.txt

My goal is to set up my system something like this:

CMakeExample/src/Hello
CMakeExample/src/Demo
CMakeExample/lib -- not sure if I need this?
CMakeExample/linuxBuild/CmakeLists.txt
CMakeExample/windowsBuild/CmakeLists.txt

It seems that the only difference between the CmakeLists.txt file for
linux and windows is that the windows one has 
SET(CMAKE_C_COMPILER i686-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-mingw32-g++)
while the linux one uses the default

basically I want the helloworld example but running out of source
directory 

thoughts?

WARNING: This email and any attachments may be confidential and/or
privileged. They are intended for the addressee only and are not to be read,
used, copied or disseminated by anyone receiving them in error.  If you are
not the intended recipient, please notify the sender by return email and
delete this message and any attachments.

The views expressed in this email are those of the sender and do not
necessarily reflect the official views of Landcare Research.  

SirTrack
http://www.sirtrack.com



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] need help with modified helloworld

2007-07-24 Thread Clark J. Wang

On 7/25/07, Andy Dingfelder [EMAIL PROTECTED] wrote:


I'm wondering if someone could help me with a simple change to the
helloworld example

I have gotten the helloworld to work with either windows output or
linux output, by changing the base CMakeLists.txt file but am struggling
on how to build both

the current example is set up as follows:

CMakeExample/Hello
CMakeExample/Demo
CMakeExample/Build
CMakeExample/CmakeLists.txt

My goal is to set up my system something like this:

CMakeExample/src/Hello
CMakeExample/src/Demo
CMakeExample/lib -- not sure if I need this?
CMakeExample/linuxBuild/CmakeLists.txt
CMakeExample/windowsBuild/CmakeLists.txt



CMakeLists.txt should be put under the topmost directory of your project.
And since CMake is a cross-platform make, you need not use two different
CMakeLists.txt for Linux and Windows.

It seems that the only difference between the CmakeLists.txt file for

linux and windows is that the windows one has
SET(CMAKE_C_COMPILER i686-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-mingw32-g++)
while the linux one uses the default

basically I want the helloworld example but running out of source
directory

thoughts?


WARNING: This email and any attachments may be confidential and/or
privileged. They are intended for the addressee only and are not to be
read,
used, copied or disseminated by anyone receiving them in error.  If you
are
not the intended recipient, please notify the sender by return email and
delete this message and any attachments.

The views expressed in this email are those of the sender and do not
necessarily reflect the official views of Landcare Research.

SirTrack
http://www.sirtrack.com




___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] need help with modified helloworld

2007-07-24 Thread Brandon Van Every

On 7/25/07, Andy Dingfelder [EMAIL PROTECTED] wrote:


CMakeExample/linuxBuild/CmakeLists.txt
CMakeExample/windowsBuild/CmakeLists.txt


This makes no sense.  You don't write different CMakeLists.txt for
different systems, you just do things like IF(UNIX) and IF(WIN32).


basically I want the helloworld example but running out of source
directory


http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees ?


Cheers,
Brandon Van Every
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake