Re: [CMake] providing library information, what's the cmake way

2010-11-29 Thread Kishore
On Tuesday 23 Nov 2010 5:27:56 pm Johannes Zarl wrote: > Another somehow related topic seems to be import/export of targets. Should > a LibraryConfig.cmake or FindLibrary.cmake file create imported targets > for the library? Thanks for this thread. It has helped. However, i am still not clear abou

Re: [CMake] Problems to find xmlrpc_server_abyss++.so on FreeBSD

2010-11-29 Thread Renato Botelho
On Mon, Nov 29, 2010 at 9:20 PM, Renato Botelho wrote: > Hi, > > It's the first project i'm migrating from autotools to cmake, > and it's going really well, in 4 days it's almost done. \o/ > > The only issue I have now is following, i have this code > on my CMakeLists.txt: > > find_package (XMLRPC

[CMake] Problems to find xmlrpc_server_abyss++.so on FreeBSD

2010-11-29 Thread Renato Botelho
Hi, It's the first project i'm migrating from autotools to cmake, and it's going really well, in 4 days it's almost done. \o/ The only issue I have now is following, i have this code on my CMakeLists.txt: find_package (XMLRPC REQUIRED abyss-server c++2) message(STATUS "xmlrpc-libs: ${XMLRPC_LIBR

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-11-29 Thread Philip Lowman
Try adding the "gtest.a" library as well. Also, order does matter when you are linking static libraries so you might need to play with the ordering. Also, when you get some time, have a look at FindGTest.cmake. It may help you simplify adding your tests. On Mon, Nov 29, 2010 at 5:55 PM, Kevyn-A

[CMake] Makefile to CMakeLists.txt (GTEST)

2010-11-29 Thread Kevyn-Alexandre Paré
Hi, /// -> What I trying to do is to compile my unit test with google test with cmake from a working Makefile. /// -> Here the Makefile RRThread.o : $(USER_DIR)/RRThread.c $(USER_DIR)/RRThread.h $(GTEST_HEADERS) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/RRThread.c UT_RRThread.o : $(

[CMake] CPack: Different directory layout depending on generator

2010-11-29 Thread Johan Björk
Hi everyone, This is basically a repeat question from what was asked in 2008 [1]. Is this possible now? To reiterate, I have a project to which I want to give my users an option to either install as a .deb file, or as a .tgz. in my tgz, I would like a layout such as foo-1.2.3.tgz: foo-1.2.3/READ

Re: [CMake] Trouble with non standard Qt installation.

2010-11-29 Thread John Drescher
On Mon, Nov 29, 2010 at 1:42 PM, John Drescher wrote: > On Mon, Nov 29, 2010 at 1:35 PM, tibur wrote: >> Hello. >> >> Our team uses the same Windows (VS) Qt build, but all the developers don't >> store it at the same place on their hard drive. So qmake.exe doesn't contain >> the good include, lib

Re: [CMake] Trouble with non standard Qt installation.

2010-11-29 Thread John Drescher
On Mon, Nov 29, 2010 at 1:35 PM, tibur wrote: > Hello. > > Our team uses the same Windows (VS) Qt build, but all the developers don't > store it at the same place on their hard drive. So qmake.exe doesn't contain > the good include, library, ... directories. > > On the FindQt4.cmake script of vers

[CMake] Trouble with non standard Qt installation.

2010-11-29 Thread tibur
Hello. Our team uses the same Windows (VS) Qt build, but all the developers don't store it at the same place on their hard drive. So qmake.exe doesn't contain the good include, library, ... directories. On the FindQt4.cmake script of version 2.8.2 (line 770), the find_library call was using

Re: [CMake] providing library information, what's the cmake way

2010-11-29 Thread Johannes Zarl
On 11/29/2010 at 14:28, "Johannes Zarl" wrote: > On 11/26/2010 at 05:47, Michael Hertling wrote: >> See [1] for a former discussion of >> several aspects regarding multi-component packages. >> [...] >> [1] http://www.mail-archive.com/cmake@cmake.org/msg28431.html > > Looks interesting. I will h

[CMake] New blog post: Constraining Values with ComboBoxes in CMake (cmake-gui)

2010-11-29 Thread David Cole
Read all about it: http://www.kitware.com/blog/home/post/82 Cheers, David Cole Kitware, Inc. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] Error using CMake 2.8.x, Visual Studio 2010, and multiple platform SDKs.

2010-11-29 Thread Ted Berg
On 11/28/2010 10:59 PM, Bill Hoffman wrote: > On 11/24/2010 5:02 PM, Ted Berg wrote: >> I'm seeing a reproducible failure generating "Visual Studio 10" output >> on a system with the following installed: >> >> CMake 2.8.2 >> CMake 2.8.3 >> >> Visual Studio 2005 >> Visual Studio 2010 >> >> Program F

Re: [CMake] providing library information, what's the cmake way

2010-11-29 Thread Johannes Zarl
Sorry for the late response, but your mail was simply to long for a swift response... On 11/26/2010 at 05:47, Michael Hertling wrote: > On 11/24/2010 04:51 PM, Johannes Zarl wrote: >> About the components question again: I played around a bit, and I think I >> now more or less have comprehended

Re: [CMake] CMake

2010-11-29 Thread Nicola Brisotto
Hi, I don't have much time to spend on this but looking at qmake source code I've found this files: http://qt.gitorious.org/qt/qt/blobs/4.6-stable/mkspecs/common/symbian/symbian.conf http://qt.gitorious.org/qt/qt/trees/4.6-stable/mkspecs/symbian-abld I'm not sure but it could be useful to understa

Re: [CMake] Relink on library rebuild dilema

2010-11-29 Thread Michael Hertling
On 11/29/2010 05:05 AM, Bill Hoffman wrote: > On 11/28/2010 3:19 AM, Sebastian Schaetz wrote: >> Michael Hertling writes: >> >>> 1) In the top-level CMakeLists.txt, you might say >>> >>> SET_SOURCE_FILES_PROPERTIES( >>> main.cpp PROPERTIES OBJECT_DEPENDS >>> ${CMAKE_CURRENT_BINARY_DIR}/k

Re: [CMake] How to apply the --as-needed linker flag?

2010-11-29 Thread Marcel Loose
>>> On 28-11-2010 at 9:10, in message , "Alan W. Irwin" wrote: > On 2010-11-28 06:39+0100 Michael Hertling wrote: > >> On 11/27/2010 06:45 PM, Alan W. Irwin wrote: >>> I just discovered that many Linux distros these days use the >>> --as-needed Linux linker option by default. At first glance th

[CMake] building using Visual C++ 64 bits edition

2010-11-29 Thread Paul Laurent
Dear all, I have just migrated to a brand new PC running Windows 7 home premium 64 bits (Intel proc) and I would like to compile a 64 bits version of my programs (that use VTK, ITK, FLTK). I have installed the 2010 express edition of Visual C++ and the SDK 7.1 that includes 64 bits compiler. I

Re: [CMake] Relink on library rebuild dilema

2010-11-29 Thread Sebastian Schaetz
Bill Hoffman writes: > No need for all the complication... > > If you already know where the library is going to be: > > ${CMAKE_CURRENT_BINARY_DIR}/kernels/libkernel_executable.a > > Then link directly to the full path: > > target_link_libraries(main_target > ${CMAKE_CURRENT_BINARY_DIR}/