Re: [CMake] How can I set different include_directories values for multiple C targets in a single CMakeLists.txt file?

2010-06-01 Thread Michael Hertling
On 06/01/2010 10:34 PM, Hickel, Kelly wrote: > I'm trying to build two different versions of a library from a single > CMakeLists.txt file (akin to what the FAQ section 7.1 spells out for building > shared and static libraries). However, the include_directories command > doesn't accept a target

Re: [CMake] multi-tiered config file inclusion

2010-05-31 Thread Michael Hertling
On 05/30/2010 11:58 PM, Hugh Sorby wrote: > > So this is what I put into my OpenCASCADE config file > > SET( CONFIG_FILE_CONTENTS > "\nGET_FILENAME_COMPONENT( SELF_DIR \"\${CMAKE_CURRENT_LIST_FILE}\" > PATH )" > "\nINCLUDE( \${SELF_DIR}/OpenCASCADE-targets.cmake )" > "\nGET_FILENAME_

Re: [CMake] multi-tiered config file inclusion

2010-05-29 Thread Michael Hertling
On 05/28/2010 06:35 AM, Hugh Sorby wrote: > > Hi All, > > The question I have is about our old friend the static library and > config files. > > In my project I use two other libraries that I depend on (both built via > CMake) > 1. OpenCASCADE > 2. wxWidgets > > plus some others. So, whe

Re: [CMake] linker scripts and dependencies

2010-05-28 Thread Michael Hertling
On 05/28/2010 12:23 AM, Chris Bayley wrote: > I am getting to grip with cmake on an embedded system (ARM Cortex M3), > but I can't figure out if there is a better way to specify the linker > script file than with: > > set(CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT}") > > if that then is way to

Re: [CMake] newbie question - what targets are supported?

2010-05-27 Thread Michael Hertling
On 05/28/2010 12:14 AM, Doug Reiland wrote: > okay, I have ordered the book. But, in the meantime. > > I am continuing to port a large library from in-house build to cmake > for evaluation. > What builtin targets are supported? On *nix, run CMake on a directory with an empty CMakeLists.txt, then

Re: [CMake] cmake - library help

2010-05-27 Thread Michael Hertling
On 05/27/2010 05:32 PM, Torri, Stephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Doug Reiland >> Sent: Thu 5/27/2010 11:14 AM >> To: cmake@cmake.org >> Subject: [CMake] cmake - library help >> >> First, I am new to cmake and exploring converting our home grown build >> s

Re: [CMake] Problems building a shared library

2010-05-27 Thread Michael Hertling
On 05/27/2010 04:59 PM, Torri, Stephen CIV NSWCDD, W15 wrote: > I am attempting to build a shared library as a project. In order to explain > my project I will use a pseudo project with a similar setup. The library is > called TruckInterface with four directories (Wheels, Engine, Frame and > Tru

Re: [CMake] TRY_COMPILE without linking...

2010-05-27 Thread Michael Hertling
On 05/26/2010 04:03 AM, Bill Hoffman wrote: > On 5/25/2010 8:57 PM, Michael Hertling wrote: >> On 05/25/2010 06:13 PM, Theodore Papadopoulo wrote: >>> In porting a library (blitz) from autoconf to cmake, I have the >>> sub-project of testing C++ compiler features.

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-27 Thread Michael Hertling
On 05/27/2010 09:05 AM, Jesper Eskilson wrote: > On 05/26/2010 05:17 PM, Michael Hertling wrote: > >>> Will this still work with an executable E wich depends on B -> C -> B. >>> Won't C pull in A as well? >> >> OK, I suppose, that means you hav

Re: [CMake] FindBoost problem

2010-05-26 Thread Michael Hertling
On 05/26/2010 07:52 PM, Nico Schlömer wrote: > Hi all, > > I'd like to use CMake for an application that I'm developing on an > Ubuntu machine which needs to link against Boost, i.e., a > custom-compiled installation at /opt/boost/1.43.0/. > > I compiled and installed CMake 2.8.1, FindBoost.cmake

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-26 Thread Michael Hertling
On 05/26/2010 12:31 PM, Jesper Eskilson wrote: > On 05/25/2010 05:35 PM, Michael Hertling wrote: >> On 05/25/2010 03:58 PM, Jesper Eskilson wrote: >>> On 05/25/2010 02:41 PM, Michael Hertling wrote: >>> >>>> Exactly: The need for A's repetition in th

Re: [CMake] CMAKE -- compiling questions

2010-05-26 Thread Michael Hertling
On 05/26/2010 01:03 PM, Lucian Goron wrote: > Hello Michael, I followed the steps suggested by you. Here is the result. > > go...@schwarz:~/work/ransac/build$ rm -rf "rm -rf" does nothing, use "rm -rf *" instead. > go...@schwarz:~/work/ransac/build$ cmake -DCMAKE_BUILD_TYPE=debug ../ > -- Config

Re: [CMake] TRY_COMPILE without linking...

2010-05-25 Thread Michael Hertling
On 05/25/2010 06:13 PM, Theodore Papadopoulo wrote: > In porting a library (blitz) from autoconf to cmake, I have the > sub-project of testing C++ compiler features. > The autoconf way was to create some C++ files and test that they are > compiling (and just compiling not linking). > > TRY_COMPI

Re: [CMake] CMAKE -- compiling questions

2010-05-25 Thread Michael Hertling
On 05/26/2010 12:34 AM, Lucian Goron wrote: > Back to square one ! > I solved all the VTK problems, and now it gives me the same error as in the > beginning. > > go...@schwarz:~/work/ransac/build$ make > Linking CXX executable coloredElevationMap > CMakeFiles/coloredElevationMap.dir/home/goron/wor

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Michael Hertling
On 05/25/2010 03:58 PM, Jesper Eskilson wrote: > On 05/25/2010 02:41 PM, Michael Hertling wrote: > >> Exactly: The need for A's repetition in the link line is a sole affair >> of A and C. Therefore, IMO, it should not be brought explicitly to D's >> link

Re: [CMake] QT_DEFINITIONS

2010-05-25 Thread Michael Hertling
On 05/24/2010 11:39 PM, Clinton Stimpson wrote: > On Monday, May 24, 2010 03:07:43 pm Michael Hertling wrote: >> On 05/24/2010 05:20 PM, Clinton Stimpson wrote: >>> On Sunday, May 23, 2010 08:26:42 am Michael Hertling wrote: >>>> Dear CMake community, >>&g

Re: [CMake] CMAKE -- compiling questions

2010-05-25 Thread Michael Hertling
On 05/25/2010 11:16 AM, Lucian Goron wrote: > Not exactly. > I saved my work directory, with all my sources and libraries, formatted my > HDD, installed lucid lynx, and copied my work directory back. As MW already pointed out, the C++ compiler of your new distribution possibly generates object cod

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-25 Thread Michael Hertling
On 05/25/2010 10:52 AM, Jesper Eskilson wrote: > On 05/24/2010 03:40 PM, Michael Hertling wrote: >> On 05/24/2010 11:20 AM, Jesper Eskilson wrote: >>> Hi, >>> >>> I have two targets, call them A and B. They both link with a third, >>> static library ca

Re: [CMake] QT_DEFINITIONS

2010-05-24 Thread Michael Hertling
On 05/24/2010 05:20 PM, Clinton Stimpson wrote: > > > > On Sunday, May 23, 2010 08:26:42 am Michael Hertling wrote: >> Dear CMake community, >> >> after having taken a look into FindQt4.cmake, UseQt4.cmake and >> Qt4ConfigDependentSettings.cmake, I wonder how

Re: [CMake] Error in generated nmake files on Windows

2010-05-24 Thread Michael Hertling
On 05/24/2010 03:42 PM, Michael Wild wrote: > > On 24. May, 2010, at 15:24 , Bo Thorsen wrote: > >> Hi all, >> >> I have as simple a CMakeLists.txt as possible: >> >> ADD_EXECUTABLE(comp_err comp_err.c) >> >> I did these two commands: >> >> $ set CMAKE_BUILD_TYPE=RelWithDebInfo >> $ cmake -G "NMa

Re: [CMake] Reverse dependencies (Unix Makefiles)

2010-05-24 Thread Michael Hertling
On 05/24/2010 11:20 AM, Jesper Eskilson wrote: > Hi, > > I have two targets, call them A and B. They both link with a third, > static library called C. C attempts to invoke a function which is > defined by however links with C, i.e. either A or B. > > This is not a problem as long as A and B ar

[CMake] QT_DEFINITIONS

2010-05-23 Thread Michael Hertling
Dear CMake community, after having taken a look into FindQt4.cmake, UseQt4.cmake and Qt4ConfigDependentSettings.cmake, I wonder how the QT_DEFINITIONS variable gets populated. As far as I can see, this variable remains empty, perhaps except for -DQT_DLL on Windows; in particular, it does not recei

Re: [CMake] Using objects in different targets

2010-05-22 Thread Michael Hertling
On 05/21/2010 03:05 PM, Christoph Rüdiger wrote: > Am 20.05.2010 um 13:33 schrieb Michael Hertling: > >> On 05/20/2010 01:04 PM, "Christoph Rüdiger" wrote: >>> [...] >>> I've a directory src containing the complete source code of the >>> pr

Re: [CMake] CMAKE -- compiling questions

2010-05-20 Thread Michael Hertling
On 05/20/2010 10:58 AM, Lucian Goron wrote: > I now have lucid lynx and I am struggling to get my old code to work on this > system > anyway, when I compile some of it I get: > > luc...@schwarz:~/work/ransac$ make > Linking CXX executable elevationMap > CMakeFiles/elevationMap.dir/home/lucian/work

Re: [CMake] Using objects in different targets

2010-05-20 Thread Michael Hertling
On 05/20/2010 01:04 PM, "Christoph Rüdiger" wrote: > Hi! > > I'm new to cmake and couldn't find a solution for my problem: > > I've a directory src containing the complete source code of the program and > another directory called test containing the source code for the unit tests. > In the top le

Re: [CMake] How to handle git branches

2010-05-19 Thread Michael Hertling
On 05/18/2010 09:18 PM, Andreas Pakulat wrote: > On 18.05.10 20:59:50, Michael Wild wrote: >> On 18. May, 2010, at 20:52 , Andreas Pakulat wrote: >>> I've recently bumped into a few problems with my usage of cmake on a >>> git-hosted project and am wondering what others are doing in such cases. >>>

Re: [CMake] cmake ld fails

2010-05-18 Thread Michael Hertling
On 05/18/2010 11:13 PM, R. Bryn Fenwick wrote: > > Hi, > > I have received some code that works on one system, but is failing to > work for me. Any suggestions how to debug this would be greatly > appreciated. > > I think that I am setting everything up correctly however it appears > to ne

Re: [CMake] distribute third party libs with NSIS

2010-05-18 Thread Michael Hertling
On 05/17/2010 08:41 PM, Michaël Presseau wrote: > Hi, I have an application and I need to create an installer. I use CPack with > NSIS. For now, I'm using : > find_package(Boost COMPONENTS thread date_time filesystem REQUIRED) > > This give me le .lib associate to the dll file. This is compiling

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-17 Thread Michael Hertling
On 05/17/2010 10:20 PM, n0p n0p wrote: > Hello, > > I have a little application which uses Qt 4. It compiles without problem on > linux but the CMakeLists.txt file > i use under linux seems to not work on windows and i don't understand why. > The CMakeLists.txt file I use > is the following: > >

Re: [CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

2010-05-17 Thread Michael Hertling
On 05/17/2010 02:03 PM, Benoit wrote: > Hy I've created my CPACK in a way that during the installation the > PostgreSQL and the MSVC Redistributable are installed automatically. > however this doesn't work when i put them both, but when there is only one > it work perfectly for this one > > Exempl

Re: [CMake] Unit tests, but not CTest

2010-05-17 Thread Michael Hertling
On 05/16/2010 11:34 PM, Magnus Therning wrote: > On 14/05/10 22:28, Michael Hertling wrote: >> On 05/14/2010 08:24 AM, Magnus Therning wrote: > [...] >>> Thanks for this analysis, it makes the problem a lot clearer to me. One >>> thing it doesn't clarif

Re: [CMake] [CMAKE] Handling External Libraries and Resources

2010-05-14 Thread Michael Hertling
On 05/13/2010 05:58 AM, Clinton Stimpson wrote: >> >> Essentially, I'd like to hear your views on handling resource copying. Is >> there an obvious method I've overlooked? What are other projects doing to >> handle resources? Any ideas with respect to other methods of handling >> resources? > >

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Hertling
On 05/14/2010 09:40 AM, Michael Wild wrote: > > On 14. May, 2010, at 9:19 , Michael Hertling wrote: > >> On 05/14/2010 08:05 AM, Michael Wild wrote: >>> >>> On 14. May, 2010, at 7:02 , Thangaraj wrote: >>> >>>> Hi All, >>>> >

Re: [CMake] Unit tests, but not CTest

2010-05-14 Thread Michael Hertling
On 05/14/2010 08:24 AM, Magnus Therning wrote: > On 14/05/10 01:14, Michael Hertling wrote: >> On 05/13/2010 10:43 AM, Magnus Therning wrote: > [...] >>> It's not ideal. >>> >>> I'm writing some CMake scripts to ease the use of OCaml with CMake.

Re: [CMake] add_custom_command - help - to specify a rule that can be used to convert all the .pc files to .cxx files

2010-05-14 Thread Michael Hertling
On 05/14/2010 08:05 AM, Michael Wild wrote: > > On 14. May, 2010, at 7:02 , Thangaraj wrote: > >> Hi All, >> >> I am trying to replace the clearmake build system with cmake for one of my >> corporate projects. >> This is a C++ based project and the interaction to database is being done >> using p

Re: [CMake] Unit tests, but not CTest

2010-05-13 Thread Michael Hertling
On 05/13/2010 10:43 AM, Magnus Therning wrote: > On Thu, May 13, 2010 at 07:46, Michael Hertling wrote: >> On 05/13/2010 07:36 AM, Magnus Therning wrote: >>> On 13/05/10 02:31, Michael Hertling wrote: >>>> On 05/11/2010 10:51 AM, Magnus Therning wrote: >>>

Re: [CMake] Unit tests, but not CTest

2010-05-12 Thread Michael Hertling
On 05/13/2010 07:36 AM, Magnus Therning wrote: > On 13/05/10 02:31, Michael Hertling wrote: >> On 05/11/2010 10:51 AM, Magnus Therning wrote: >>> I'm still having problems with this. >>> >>> I put together this: >>> >>> project( tes

Re: [CMake] Unit tests, but not CTest

2010-05-12 Thread Michael Hertling
On 05/11/2010 10:51 AM, Magnus Therning wrote: > On Mon, May 10, 2010 at 17:28, Tyler Roscoe wrote: >> Let's keep this on the list in case it helps someone else. >> >> On Fri, May 07, 2010 at 10:27:16PM +0100, Magnus Therning wrote: >>> On 07/05/10 17:24, Tyler Roscoe wrote: On Fri, May 07, 2

Re: [CMake] FindBoost not setting Boost_LIBRARIES

2010-05-11 Thread Michael Hertling
On 05/12/2010 01:06 AM, McNamara, Nate wrote: > Hello! > > I've been struggling with find_package(boost ...): although it succeeds > up to a point, it doesn't finish the job. I must be doing something > wrong. > > The output below shows that boost is found, and several of the expected > variable

Re: [CMake] Bug in CMake documentation?

2010-05-09 Thread Michael Hertling
On 05/09/2010 12:01 PM, Esben Mose Hansen wrote: > On Sunday 09 May 2010 11:12:54 Esben Mose Hansen wrote: >> I quote from the documentation (2.8) >> >>> if() >>> >>> >>> True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number. False >>> if the constant is 0, OFF, NO, FALSE, N, IGNORE,

Re: [CMake] cmake: could NOT find Boost

2010-05-05 Thread Michael Hertling
Regards, Michael > > On Wed, May 5, 2010 at 9:57 AM, Michael Hertling wrote: > >> On 05/04/2010 07:19 PM, Mike Ladwig wrote: >>> The "clean build tree" seems to have been the problem. Looks as if I >> needed >>> to start clean every time I tried a new

Re: [CMake] cmake: could NOT find Boost

2010-05-05 Thread Michael Hertling
On 05/04/2010 07:19 PM, Mike Ladwig wrote: > The "clean build tree" seems to have been the problem. Looks as if I needed > to start clean every time I tried a new configuration approach. Much > thanks! Typically, if FIND_PACKAGE() succeeds in locating a package the results are cached, and if you

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-29 Thread Michael Hertling
On 04/26/2010 10:07 PM, Alexander Neundorf wrote: > On Sunday 25 April 2010, Michael Hertling wrote: >> On 04/22/2010 09:55 PM, Alexander Neundorf wrote: >>> On Thursday 22 April 2010, Michael Hertling wrote: >>>> On 04/21/2010 09:13 PM, Alexander Neundorf wrote:

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-28 Thread Michael Hertling
On 04/27/2010 04:53 PM, Daniel Hornung wrote: > On 2010-04-27 14:42, Michael Hertling wrote: >> Are you sure this behaviour isn't the expected one? >> >> "make install" w.r.t. targets means: >> >> 1) Build any target that "install" depe

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-27 Thread Michael Hertling
On 04/27/2010 04:21 PM, Hendrik Sattler wrote: > Am Dienstag 27 April 2010 14:42:18 schrieb Michael Hertling: >> On 04/27/2010 10:31 AM, Daniel Hornung wrote: >>> On 2010-04-27 9:24, Daniel Hornung wrote: >>>> And indeed "make install >>>> ${some_

Re: [CMake] Yet another install() vs. exclude_from_all thread

2010-04-27 Thread Michael Hertling
On 04/27/2010 10:31 AM, Daniel Hornung wrote: > On 2010-04-27 9:24, Daniel Hornung wrote: >> And indeed "make install >> ${some_name}" compiles those targets fine but does not install them. > > Addendum: I just found that those targets are only installed if they exist > already when the "all" targ

Re: [CMake] VS2010 bug, when output executable has '.' characters

2010-04-26 Thread Michael Hertling
On 04/26/2010 04:09 AM, Jarl Lindrud wrote: > > I think I've found another bug in the VS2010 generator. I've generated a > VS2010 solution from this CMakelists.txt: > > PROJECT(AAA) > ADD_LIBRARY(AAA.BBB.CCC SHARED File1.cpp) > > , but when I build it, I find that the output file is named AAA.

Re: [CMake] Adding to rpath through cmake

2010-04-26 Thread Michael Hertling
On 04/26/2010 08:35 AM, Michael Darling wrote: > Hi, > > I've been trying to figure out how to append another directory to the -rpath > sent to the linker through cmake. > > I have a yum-installed version of stdlibs in /usr/lib64, and a svn source > built one in /usr/local/lib64. I need the newe

Re: [CMake] Is "full language support" possible?

2010-04-26 Thread Michael Hertling
On 04/26/2010 08:00 AM, Magnus Therning wrote: > What is needed to make it possible to write > > project( camlzip MyLanguage ) > > and then have all the standard macros, add_libary() etc, do the correct thing > for MyLanguage? Have a look at .

Re: [CMake] VS2010 problem with upper case CPP extension

2010-04-25 Thread Michael Hertling
On 04/25/2010 12:10 PM, Michael Wild wrote: > > On 25. Apr, 2010, at 11:37 , Jarl Lindrud wrote: > >> >> Hi, >> >> I've just run cmake 2.8.1, with the "Visual Studio 10" generator, on a cmake >> project that I've previously been running the VS2008 generator on. >> >> There appears to be a proble

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-25 Thread Michael Hertling
On 04/22/2010 09:55 PM, Alexander Neundorf wrote: > On Thursday 22 April 2010, Michael Hertling wrote: >> On 04/21/2010 09:13 PM, Alexander Neundorf wrote: >>> On Tuesday 20 April 2010, Michael Hertling wrote: >>>> Dear CMake community, dear CMake developers, >&g

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-24 Thread Michael Hertling
On 04/22/2010 02:04 PM, Michael Wild wrote: > > On 22. Apr, 2010, at 13:50 , S Roderick wrote: > >> On Apr 22, 2010, at 06:21 , Michael Hertling wrote: >> >>> On 04/21/2010 09:29 PM, S Roderick wrote: >>>> On Apr 21, 2010, at 15:13 , Alexander Neundorf

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-23 Thread Michael Hertling
On 04/22/2010 01:50 PM, S Roderick wrote: > On Apr 22, 2010, at 06:21 , Michael Hertling wrote: > >> On 04/21/2010 09:29 PM, S Roderick wrote: >>> On Apr 21, 2010, at 15:13 , Alexander Neundorf wrote: >>> >>>> On Tuesday 20 April 2010, Michael Hertli

Re: [CMake] Looking for a way to do 'make install' to a destination

2010-04-23 Thread Michael Hertling
On 04/19/2010 04:22 PM, Magnus Therning wrote: > On Mon, Apr 19, 2010 at 11:36, Remy Chibois wrote: >> >> On Apr 19, 2010, at 12:16 PM, Magnus Therning wrote: >> >>> It's some times useful to do an install rooted not at '/' but at some >>> arbitrary location. ?Is there some way of doing this with

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-22 Thread Michael Hertling
On 04/21/2010 09:29 PM, S Roderick wrote: > On Apr 21, 2010, at 15:13 , Alexander Neundorf wrote: > >> On Tuesday 20 April 2010, Michael Hertling wrote: >>> Dear CMake community, dear CMake developers, >>> >> ... >>> There's another aspect rela

Re: [CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-22 Thread Michael Hertling
On 04/21/2010 09:13 PM, Alexander Neundorf wrote: > On Tuesday 20 April 2010, Michael Hertling wrote: >> Dear CMake community, dear CMake developers, >> > ... >> There's another aspect related to this I'd like to comment on: During >> the abovementioned c

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-21 Thread Michael Hertling
On 04/20/2010 09:40 PM, Benoit Thomas wrote: > On 2010-04-20 03:27, Michael Hertling wrote: >> On 04/19/2010 10:07 PM, Benoit Thomas wrote: >> >> >>> I'm using an external library which is already compiled. I have wrapped >>> the library in a My

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-20 Thread Michael Hertling
a proper place, see above, you even don't have to tell CMake where to find it; otherwise, consider CMAKE_PREFIX_PATH from the command line or via ccmake et al. 'hope this helps a little bit, and to CMake experts: Feel free to beat me if I'm telling nonsense, but give some enlightenm

[CMake] Apply FIND_PACKAGE_HANDLE_STANDARD_ARGS() on COMPONENTS

2010-04-19 Thread Michael Hertling
about the available components, imperatively refer to the XXX_YY_FOUND variables." Or, in other words: XXX_FOUND simply does not carry enough information about available components from a multi-component package, so, IMHO, a component's absence isn't sufficient to n

<    3   4   5   6   7   8