Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Andreas Pakulat
On 14.03.11 15:04:54, Enrique Izaguirre wrote: Hi Alex, This is the whole output from the make. I can only see warnings: /bin/gcc-linux -DCOMDRIVER_EXPORTS -DBUILD_FIX_TMP -DFIX_WIN32 -DNO_ZIP -D_DEBUG -D_CONSOLE -I/home/x0148488/omapflash/cmake_build -I/home/x0148488/omapflash

Re: [CMake] set_target_properties not setting COMPILE_DEFINITIONS?

2011-03-28 Thread Andreas Pakulat
On 28.03.11 14:43:01, David Doria wrote: On Mon, Mar 28, 2011 at 2:31 PM, David Doria daviddo...@gmail.com wrote: On Mon, Mar 28, 2011 at 2:28 PM, Yuri Timenkov y...@timenkov.ru wrote: Try prefixing definitions with -D I changed to: SET(MAIN_BUILD_DEFINITIONS ${MAIN_BUILD_DEFINITIONS}

Re: [CMake] library path stripping

2011-06-08 Thread Andreas Pakulat
On 08.06.11 20:00:54, Andreas Naumann wrote: Am 08.06.2011 15:02, schrieb Eric Noulard: 2011/6/8 Andreas Naumannandreas-naum...@gmx.net: Am 08.06.2011 11:56, schrieb Eric Noulard: 2011/6/8 Andreas Naumannandreas-naum...@gmx.net: Hi @all, I have some problem with the library usage in

Re: [CMake] Magical transformation of /path/to/libmylib.so to -lmylib

2011-07-11 Thread Andreas Pakulat
On 11.07.11 23:34:37, Jens Mueller wrote: Hi, I'm trying to figure out where the path for a found library is changed. In my case Curses is found at /usr/lib/libcurses.so. When linking with gcc /usr/lib/libcurses.so is replaced by -lcurses as it is specified at

Re: [CMake] Sub dependencies?

2011-08-12 Thread Andreas Pakulat
On 12.08.11 16:48:09, Doug wrote: why? I've invoked: find_package(liba REQUIRED) not: find_package(libpng REQUIRED) My application has no knowledge about libpng, or libjpg or whatever the heck else liba uses to load images. I might have misinterpreted what you wrote so far, but

Re: [CMake] multiple source directories

2011-09-28 Thread Andreas Pakulat
On 28.09.11 12:51:53, pellegrini wrote: Hi all, I have a project with the following structure: root/ CMakeLists.txt prog1/ CMakeLists.txt Src/ file1.f90 prog2/ CMakeLists.txt Src/ file2.f90 where prog1, prog2 are

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Andreas Pakulat
On 06.10.11 20:21:33, Andreas Pakulat wrote: On 06.10.11 12:30:09, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate

Re: [CMake] Windows 8 and Visual Studio 2011 Developer Preview cannot open cmake-generated vcproj files

2011-10-18 Thread Andreas Pakulat
On 18.10.11 00:25:00, Claudio Bantaloukas wrote: Hi * I have installed the windows developer preview with visual studio 2011. I tried to use cmake 2.8.6 to generate a project but: - when I try to open the sln file, I get a modal dialog saying that the format is not recognized (in fact the

Re: [CMake] Combine GTK with a Cmake Project

2011-10-18 Thread Andreas Pakulat
On 18.10.11 13:40:55, David Boesner wrote: Hi, I've tried to combine CMake with GTK. Unfortunately this didn't work. Can you help me? What is the error? Did you look at the FindGTK2.cmake module to get inspiration for a GTK3 module? Is there a particular reason to call the module

Re: [CMake] Empty ./CMakeFiles/Makefile2 - how to proceed?

2011-10-20 Thread Andreas Pakulat
On 20.10.11 14:12:10, Alastair McKinstry wrote: On 2011-10-20 13:43, Eric Noulard wrote: 2011/10/20 Alastair McKinstrymckins...@debian.org: I'm building a debian package, CDAT. The latest version 6.0.alpha uses CMAKE to build, rather than configure. The trouble is that CMake doesn't build. It

Re: [CMake] Weird linking error while cross compiling

2011-10-25 Thread Andreas Pakulat
On 25.10.11 13:15:37, Jose wrote: Hi all, I'm cross compiling an app under Fedora. I get this linking errors while building with cmake : /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: cannot find -lxerces-c

Re: [CMake] Weird linking error while cross compiling

2011-10-26 Thread Andreas Pakulat
On 26.10.11 03:54:02, Jose wrote: Sorry for not being very specific. This is the command that Cmake is running while linking : /usr/bin/i686-pc-mingw32-g++ -O3 -O3-Wl,-Bstatic -static-libgcc -Wl,--whole-archive CMakeFiles/sqt2pin.dir/objects.a -Wl,--no-whole-archive -o sqt2pin.exe

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 12:15:23, Laszlo Papp wrote: Hi, I would like to achieve something like this by using cmake: http://doc.qt.nokia.com/4.8/activeqt-comapp.html I would like to have a QObject subclass in my main.cpp file since it has just one method for instance, and thus it would be a

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 13:10:28, Laszlo Papp wrote: Thank you for your help Andreas. I have tried your approach. Please see the attached logs. The moc files are now somehow not generated. I might need to use qt4_wrap_cpp after all ? Sorry, seems like my local experiments led to wrong conclusions here. At

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 14:47:07, Laszlo Papp wrote: I am now attaching the log about the following files: 1) CMakeLists.txt file 2) main.cpp 3) build log 4) moc_main.cxx Q_MOC_OUTPUT_REVISION is somehow not defined, but not sure why. You're not supposed to add the mocfiles variable contents you

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 15:38:52, Laszlo Papp wrote: You're not supposed to add the mocfiles variable contents you receive from qt4_wrap_cpp to the list of sources. In particular not because you already #include that same file in the main.cpp. If you look at the generated file you'll notice that it

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 21:07:45, Alexander Neundorf wrote: On Monday 31 October 2011, Laszlo Papp wrote: Hi, I would like to achieve something like this by using cmake: http://doc.qt.nokia.com/4.8/activeqt-comapp.html I would like to have a QObject subclass in my main.cpp file since it has

Re: [CMake] Static Library output problem

2011-11-11 Thread Andreas Pakulat
On 11.11.11 15:18:05, Romain LEGUAY wrote: Hello everyone! First, I need to thank you all the CMake developers for their awesome work!!! I try to build a static and a shared libraries. I set the LIBRARY_OUTPUT_DIRECTORY for each library target like this: See the documentation for the

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-15 Thread Andreas Pakulat
On 15.11.11 21:30:45, Laszlo Papp wrote: I have tried to grab more debug outputs, and here are my relevant printouts: statusPC_RAPTOR2_LIBDIR: /usr/lib statusPC_RAPTOR2_LIBRARY_DIRS: statusPC_RAPTOR2_INCLUDEDIR: /usr/include/raptor2 statusPC_RAPTOR2_INCLUDE_DIRS: /usr/include/raptor2 It

Re: [CMake] Issues with finding raptor in the soprano build

2011-11-16 Thread Andreas Pakulat
On 16.11.11 09:46:08, Laszlo Papp wrote: -- RAPTOR_LIBRARIES: /usr/lib/libraptor2.so -- RAPTOR_INCLUDE_DIR: /usr/include/raptor2 Ok, and since you didn't post that yet, what the exact error message from cmake that you get and where is it generated? Andreas -- Powered by www.kitware.com

Re: [CMake] Include Link Dependencies

2011-11-16 Thread Andreas Pakulat
On 16.11.11 17:35:22, Marcus Monaghan wrote: Hi, I'm just starting to use the cpack module in cmake to put together TGZ. I use TARGET_LINK_LIBRARIES to specify which libs to use during linking. Is there a way to get a list of the libs that are found and include them in my TGZ? I can

Re: [CMake] Transitive linking

2011-11-19 Thread Andreas Pakulat
On 19.11.11 00:02:22, James Bigler wrote: On Fri, Nov 18, 2011 at 5:51 PM, Michael Hertling mhertl...@online.dewrote: On 11/18/2011 10:03 PM, James Bigler wrote: 2011/11/18 Alexander Neundorf a.neundorf-w...@gmx.net On Friday 18 November 2011, James Bigler wrote: I thought CMake

Re: [CMake] VC2010 Express crashing

2011-11-22 Thread Andreas Pakulat
On 21.11.11 17:37:14, Robert Dailey wrote: On Mon, Nov 21, 2011 at 5:32 PM, John Drescher dresche...@gmail.com wrote: Yes it is 100% reproducible. I don't know if telling someone to send reports to Microsoft and have them fix the problem is the most reasonable solution. Isn't

Re: [CMake] Qt4 - Problems with QtCLucene

2011-11-24 Thread Andreas Pakulat
On 24.11.11 17:19:53, Mathemaster wrote: Hello everyone, since cmake 2.8.5 I do have a problem with the following lines: -- 132 find_package(Qt4 COMPONENTS QtCore QtGui QtHelp QtCLucene) 133 if (NOT QT4_FOUND) 134 message (FATAL_ERROR *** QT not found. ***) 135 endif(NOT

Re: [CMake] News on the Eclipse CDT generator

2011-11-24 Thread Andreas Pakulat
On 24.11.11 21:21:37, Alexander Neundorf wrote: Hi, if you are using the Eclipse project generator of CMake, you probably know about two problems there are: 1) in out-of-source builds, the svn plugin doesn't work in the linked resource which points to the source directory. The

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-25 Thread Andreas Pakulat
On 25.11.11 15:06:02, Vladimir Chebotarev wrote: Hi, Michael. On Fri, Nov 25, 2011 at 03:37:38AM +0100, Michael Hertling wrote: On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized

Re: [CMake] Transitive link question

2011-12-13 Thread Andreas Pakulat
On 13.12.11 15:59:17, Biddiscombe, John A. wrote: Project A creates a target which links to hdf5 using the hdf5 cmake generated cmake file which lists the imported location for the debug lib as hdf5d.lib SET_TARGET_PROPERTIES(hdf5 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG C

Re: [CMake] C/CXX/Fortran Compiler not found.

2012-01-11 Thread Andreas Pakulat
On 11.01.12 11:55:32, Kedar Moharana wrote: Dear all, I am trying to build from a source code using CMAKE on Windows 7. I have no prior experience in building from source code, so I need your help in this regard. The application requires following external dependencies with versions

Re: [CMake] FindPythonLibs : Version selection on OS X

2012-01-12 Thread Andreas Pakulat
On 13.01.12 15:33:23, Nicholas Yue wrote: Hi, Using the FindPythonLibs macros on OS X Lion always returns the standard Python 2.7 (shipped with Lion) There are other versions of Python which is also available in OS X Lion. Is it possible to inform FindPythonLibs to look for

Re: [CMake] How to add CMake includes and libraries to Visual Studio Solution?

2012-01-16 Thread Andreas Pakulat
On 16.01.12 21:03:20, J Decker wrote: On Mon, Jan 16, 2012 at 10:21 AM, John Drescher dresche...@gmail.com wrote: On Mon, Jan 16, 2012 at 1:15 PM, J Decker d3c...@gmail.com wrote: On Mon, Jan 16, 2012 at 10:08 AM, Rolf Eike Beer e...@sf-mail.de wrote: J Decker wrote: I just use

Re: [CMake] Copy files to build folder

2012-01-17 Thread Andreas Pakulat
On 17.01.12 12:54:28, Tim Hutton wrote: We've got this section in our CMakeLists.txt: #--copy pattern files to build folder- file( GLOB_RECURSE pattern_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/ patterns/*.vti ) foreach(

Re: [CMake] QT_IMPORTS_DIR when dit does not exist yet

2012-01-18 Thread Andreas Pakulat
On 18.01.12 16:06:28, Jonathan Riddell wrote: Some Ubuntu developers are having an issue where QT_IMPORTS_DIR is not defined when that directory does not yet exist. https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/894805 I have worked around it with http://paste.kde.org/188366/ but I

Re: [CMake] Debian source package build/install

2012-01-19 Thread Andreas Pakulat
On 19.01.12 19:39:09, Anders Wallin wrote: Hi all, For uploading to launchpad/PPA, I'm making a source-package with a cmake-script I found by googling: https://github.com/aewallin/opencamlib/blob/master/src/DebSourcePPA.cmake (please do let me know if there is a better way to build a debian

Re: [CMake] What am I doing wrong with FIND_PATH???

2012-01-20 Thread Andreas Pakulat
On 20.01.12 08:31:52, Dick Munroe wrote: I'm executing the following: FIND_PATH(ESPLANNER_INSTALL_PATH C:/Program Files/ESPlanner E:/Program Files/ESPlanner ) Looking for the directory in which this package is installed. Looking at the two disks, C: and E:, I can see the

Re: [CMake] link library paths

2012-02-02 Thread Andreas Pakulat
On 02.02.12 11:51:11, Alex Olivas wrote: I'm trying to link to libraries located in /usr/lib. This is a very simple example using boost::python and Qt. Here's my cmake file : http://codepad.org/tZxBzXVP I added the link_directories command only after the initial link failed. Using

Re: [CMake] link library paths

2012-02-02 Thread Andreas Pakulat
On 02.02.12 18:37:03, Alex Olivas wrote: I don't know what the issue was, but it's fixed in a later version. I upgraded from 2.8.2 to 2.8.7 and the problem went away. So when you say my linker-line is wrong, you mean in the verbose output there's no '-L/usr/lib' passed to ld, right? No, the

Re: [CMake] Again multiple subdirs

2012-02-07 Thread Andreas Pakulat
On 07.02.12 08:55:47, justin wrote: Hi, and just in the beginning, I am sorry if this was asked thousands of times before, but I wasn't able to find it. The situation is following src -- common -- common.c | a -- a.c | b -- b.c add_library (a

Re: [CMake] plugin dependencies and TARGET_LINK_LIBRARIES()

2010-06-15 Thread Andreas Pakulat
On 15.06.10 22:18:04, Kishore wrote: How do i inform cmake when building a module that it depends on another module? Does cmake need to even know that? I am building a plugin based qt application (my first time with plugins) and my situlation like with many other applications is that

Re: [CMake] rpath problems with kdevplatform

2010-06-26 Thread Andreas Pakulat
On 26.06.10 13:26:29, Andreas Pakulat wrote: On 21.06.10 23:30:46, Andreas Pakulat wrote: On 21.06.10 21:29:14, Alexander Neundorf wrote: On Sunday 20 June 2010, Andreas Pakulat wrote: On 20.06.10 13:27:30, Thiago Macieira wrote: Em Domingo 20. Junho 2010, às 13.07.15, Andreas

Re: [CMake] rpath problems with kdevplatform

2010-06-28 Thread Andreas Pakulat
On 28.06.10 08:44:35, Brad King wrote: Andreas Pakulat wrote: On 26.06.10 13:26:29, Andreas Pakulat wrote: Ping? Any further ideas on this? Could someone at least point me to the source code in cmake that decides wether to add RPATH_REMOVE or RPATH_REPLACE to the cmake_install.cmake file

Re: [CMake] rpath problems with kdevplatform

2010-06-30 Thread Andreas Pakulat
On 29.06.10 23:21:10, Alexander Neundorf wrote: On Monday 28 June 2010, Andreas Pakulat wrote: On 28.06.10 08:44:35, Brad King wrote: Andreas Pakulat wrote: On 26.06.10 13:26:29, Andreas Pakulat wrote: Ping? Any further ideas on this? Could someone at least point me to the source

Re: [CMake] rpath problems with kdevplatform

2010-06-30 Thread Andreas Pakulat
On 30.06.10 12:07:11, Modestas Vainius wrote: Hello, On trečiadienis 30 Birželis 2010 11:33:07 Andreas Pakulat wrote: As I said above it won't affect the install tree. See the INSTALL_RPATH target property. That property is not set (and the global variable

Re: [CMake] FindFoobar with non-root installation

2010-07-02 Thread Andreas Pakulat
On 02.07.10 14:55:07, Diablo 666 wrote: the last problem for today :) Assuming I develop a project called Foobar, which consists of some libraries only. To make using these libraries easier, I'd like to create a FindFoobar.cmake file to use with FIND_PACKAGE(). The problem is that I

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread Andreas Pakulat
On 20.07.10 12:06:11, kent williams wrote: This is with cmake version 2.8.1 on OS X 10.6. I had a project using CMake and Qt. As long as I only used one QT Designer-generated .ui file, everything worked perfectly. When I added as second UI file, things no longer worked. I was working from

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread Andreas Pakulat
On 20.07.10 13:30:51, kent williams wrote: Let's try that again http://www.cornwarning.com/xfer/QTCmakeTest.tar.gz Still the same. Andreas -- You will contract a rare disease. ___ Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread Andreas Pakulat
On 20.07.10 16:18:26, kent williams wrote: OK, so set_source_file_properties needs a property value that's a single string. This wasn't clear from the documentation at all or not clear to me at least. Thanks for your help! It doesn't need to be explicit if you've understood cmake variables

Re: [CMake] How to link against a .dll with cmake?

2010-07-25 Thread Andreas Pakulat
On 25.07.10 00:57:14, John Drescher wrote: mingw can link using a .dll I do not have much mingw experience but I have around 15 of windows and Visual Studio experience. With Visual Studio you absolutely do not link your application with .dlls. You use import libs with a .lib extension

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread Andreas Pakulat
On 26.07.10 22:24:11, Olaf van der Spek wrote: On Mon, Jul 26, 2010 at 10:12 PM, David Cole david.c...@kitware.com wrote: Is there a problem with multiple configures / build trees? No, not at all. We do this all the time. But again, I thought from your questions that you were trying to do

Re: [CMake] Does the echo command use the system shell?

2010-07-29 Thread Andreas Pakulat
On 29.07.10 08:37:36, Michael Wild wrote: On 29. Jul, 2010, at 6:37 , Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: [snip] Perhaps you need to tell us what it is that you are trying to achieve, because I suspect that you are over-thinking things and that there is

Re: [CMake] Does the echo command use the system shell?

2010-07-29 Thread Andreas Pakulat
On 28.07.10 19:19:08, Óscar Fuentes wrote: For creating a file at build time with a content like this: #define foo bar I use this on Linux: add_custom_command(OUTPUT buildobj.h COMMAND ${CMAKE_COMMAND} -E echo \\#define foo \\\bar\\\ buildobj.h ) but that doesn't work on

Re: [CMake] Does the echo command use the system shell?

2010-07-29 Thread Andreas Pakulat
On 29.07.10 09:15:51, Michael Wild wrote: On 29. Jul, 2010, at 8:51 , Andreas Pakulat wrote: On 29.07.10 08:37:36, Michael Wild wrote: On 29. Jul, 2010, at 6:37 , Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: [snip] Perhaps you need to tell us what

Re: [CMake] Does the echo command use the system shell?

2010-07-29 Thread Andreas Pakulat
On 28.07.10 19:19:08, Óscar Fuentes wrote: For creating a file at build time with a content like this: #define foo bar I use this on Linux: add_custom_command(OUTPUT buildobj.h COMMAND ${CMAKE_COMMAND} -E echo \\#define foo \\\bar\\\ buildobj.h ) but that doesn't work on

[CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Andreas Pakulat
Hi, we're currently hitting what looks like a dependency problem with CMake and a custom-command. Unfortunately I couldn't reproduce this so far with a small example and it also only happens with one of the targets we're building in kdevplatform. This code was recently added, but looks the same

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Andreas Pakulat
On 05.08.10 17:05:46, David Cole wrote: On Thu, Aug 5, 2010 at 2:29 PM, Andreas Pakulat ap...@gmx.de wrote: we're currently hitting what looks like a dependency problem with CMake and a custom-command. Unfortunately I couldn't reproduce this so far with a small example and it also only

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-10 Thread Andreas Pakulat
On 10.08.10 09:04:34, Brad King wrote: On 08/05/2010 05:33 PM, Andreas Pakulat wrote: Sure, this is the plugin that breaks: http://gitorious.org/kdevelop/kdevplatform/blobs/master/plugins/reviewboard/CMakeLists.txt Do you have KDE4_ENABLE_FINAL enabled? No. Just running cmake ../ without

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-11 Thread Andreas Pakulat
On 11.08.10 16:07:21, Brad King wrote: On 08/05/2010 02:29 PM, Andreas Pakulat wrote: One more info: I'm seeing the 'Scanning dependencies of target kdevpatchreview' message a lot later than the error when using -k with make. And at that point I also see the 'Generating ui_xxx.h' message

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-13 Thread Andreas Pakulat
On 13.08.10 14:09:21, Brad King wrote: On 08/11/2010 07:04 PM, Andreas Pakulat wrote: On 11.08.10 16:07:21, Brad King wrote: This is what causes the header to be generated before dependencies are scanned (as you observed in the quote above). I do not think anything in the kdereviewboard

Re: [CMake] Doesn't make -k work with CMake?

2010-08-16 Thread Andreas Pakulat
On 16.08.10 14:06:21, Johan Holmberg wrote: I have been working on porting some applications built with CMake, and initially I get a lot of compile errors. Maybe you should fix them? Usually compile-errors that occur on the first make call, but not subsequent ones are indications for lack of

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-17 Thread Andreas Pakulat
On 17.08.10 14:53:02, Brad King wrote: On 08/11/2010 07:04 PM, Andreas Pakulat wrote: On 11.08.10 16:07:21, Brad King wrote: What source file is it compiling when it fails to find the header? reviewpatchdialog.cpp which has #include ui_reviewpatch.h In what target is its object file

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-19 Thread Andreas Pakulat
On 19.08.10 09:26:26, Brad King wrote: On 08/18/2010 01:01 AM, Andreas Pakulat wrote: On 17.08.10 14:53:02, Brad King wrote: The source file is being compiled in a target that does not wait for the header to be generated before compiling. We can add a dependency on the target the does

[CMake] link-interface-libs not empty (or auto-filled)

2010-09-01 Thread Andreas Pakulat
Hi, I've got a small problem here, I'm building an installing a static library which links (among other things) against QtCore. I'm also using the cmake install(TARGETS .. EXPORT) stuff to export a Target.cmake file with the library as imported target. Last but not least this lib has some deps in

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-09-02 Thread Andreas Pakulat
On 02.09.10 17:02:02, Diablo 666 wrote: I think what Andreas meant is that he expects IDE's to use CMake as their native build system and auto-generate the CMake code. Exactly. AFAIK KDevelop 4 is actually building cmake files. It doesn't, it tries to help you write them and even

Re: [CMake] creation of cxx in QT4 gui

2010-09-14 Thread Andreas Pakulat
On 14.09.10 09:37:29, e...@cs.bgu.ac.il wrote: hello. I have a question, I'm assuming that QT4_WRAP_CPP is creating the cxx files, on a project of mine, I have 3 classes, two of them have a ui file, all headers are in GUI_HPP list, when I print the content of the variable, I see the two

Re: [CMake] add_dependency on a custom target

2010-09-15 Thread Andreas Pakulat
On 15.09.10 12:34:43, Nick Davidson wrote: Dear List, I'm using a file glob to extract a list of xml files to pass to a custom target to generate a pot file with getttext, most of the heavy lifting is handled by a Macro. include(FindMsgfmt) macro (MakePot BIN_NAME CPP_SOURCES

Re: [CMake] add_custom_target dependency list issue

2010-09-26 Thread Andreas Pakulat
On 26.09.10 21:31:20, Szilárd Páll wrote: I figured out something that makes me even more puzzled. The following does _not_ work as expected:: set(DEPS dep1 dep2 dep3) add_dependencies(foo bar ${DEPS}) Target foo gets only dependent on bar and not

Re: [CMake] Fwd: Removing overkill linking

2010-10-02 Thread Andreas Pakulat
On 02.10.10 23:00:57, Paul McEnery wrote: On 2 October 2010 21:49, Marcel (ASTRON) lo...@astron.nl wrote: Op zaterdag 02-10-2010 om 19:11 uur [tijdzone +0100], schreef Paul McEnery: No sure what happened to this message. I checked the list archive, and only half of the message

Re: [CMake] how to get cmake and custom qt widget to work?

2010-10-05 Thread Andreas Pakulat
On 05.10.10 20:59:27, e...@cs.bgu.ac.il wrote: hello. I have a cmake+qt4 project, I needed to extend a certain gui item to suit my needs, I've been able to insert it into qtcreator and incorporate it into the project's gui, now when I run compilation, I get this:

Re: [CMake] What does find_package(COMPONENTS) do? and

2010-10-07 Thread Andreas Pakulat
On 06.10.10 22:47:15, Stephen Kelly wrote: Hi, The documentation says A package-specific list of components may be listed after the REQUIRED option or after the COMPONENTS option if no REQUIRED option is given. http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package

Re: [CMake] how to define current working directory of command line tool

2010-10-10 Thread Andreas Pakulat
On 10.10.10 21:41:05, Jochen Wilhelmy wrote: Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Andreas Pakulat
On 11.10.10 10:07:58, Jochen Wilhelmy wrote: Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more

Re: [CMake] FIND_PATH+FIND_LIBRARY+CMAKE_INCLUDE_PATH usage...

2010-10-18 Thread Andreas Pakulat
On 18.10.10 14:29:04, JIA Pei wrote: Sorry for my entry level question: I understand to thoroughly grasp how CMake is working, I need to buy Mastering CMake. However, is there any free CMake documentation on the Internet for us to learn? Sure: www.cmake.org - Help, there's the

Re: [CMake] Inconsistent lib dependancie/name for libnames with dots

2010-10-23 Thread Andreas Pakulat
On 23.10.10 14:01:04, Bastian Moldenhauer wrote: I think I found a bug in cmake, but since I am a bloody beginner with cmake don't hit me when I am wrong. Either you're wrong or your posted sample is :) If I add a library using add_library(.) and the name of the lib contains a dot cmake

Re: [CMake] Inconsistent lib dependancie/name for libnames with dots

2010-10-23 Thread Andreas Pakulat
On 23.10.10 16:45:16, Bastian Moldenhauer wrote: On 23.10.10 14:01:04, Bastian Moldenhauer wrote: ADD_LIBRARY(b ${src}) Note that this line above creates a target called 'b' which will build a library called b.lib. I undersand that. Just use this line instead: ADD_LIBRARY(b.b ${src}) I

Re: [CMake] Linking Boost on Linux on 64bit host and 32bit target

2010-11-03 Thread Andreas Pakulat
On 03.11.10 17:57:10, Knox, Kent wrote: Hello all~ I'm going to follow up on my email from last week with more information. I don't believe that find_package( Boost ) is behaving properly in my case, and I need help with either a proper solution or a workaround. I'm using Cmake 2.8.2,

Re: [CMake] CMake 2.8.3 available for download

2010-11-04 Thread Andreas Pakulat
On 04.11.10 10:28:57, Micha Renner wrote: Am Donnerstag, den 04.11.2010, 08:38 +0100 schrieb Eric Noulard: 2010/11/4 Micha Renner micha.ren...@t-online.de: Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in the following error message of the archive manager: gzip:

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-11-05 Thread Andreas Pakulat
On 05.11.10 09:36:39, Michael Jackson wrote: I have an idea for a feature that might help resolve some of the Find*** issues. I would like to see CMake implement some sort of Software Update mechanism where you could tell CMake to check a central server for any updated FindXXX.cmake

Re: [CMake] find_package with ###Config.cmake

2010-12-02 Thread Andreas Pakulat
On 03.12.10 07:11:23, Micha Renner wrote: There is a small library TLib which is installed like this Install the project... -- Install configuration: Debug -- Installing: /usr/local/lib/libTLibd.so -- Installing: /usr/local/lib/TLib/TLibExport.cmake -- Installing:

Re: [CMake] find_package with ###Config.cmake

2010-12-03 Thread Andreas Pakulat
On 03.12.10 15:19:38, Micha Renner wrote: Meanwhile, with 2.8.3 to be exact, the warning message issued by CMake if a version file is found but the requested version doesn't suit is: Could not find a configuration file for package ... that is compatible with requested version

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 14:31:56, John Drescher wrote: On Tue, Dec 7, 2010 at 2:14 PM, Paul Dean aquawic...@hotmail.com wrote: I've been using CMAKE for a few years now and I absolutley LOVE it. It makes my life as a programmer so much easier to be able to generate project files on any platform.

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 13:14:19, Paul Dean wrote: I've been using CMAKE for a few years now and I absolutley LOVE it. It makes my life as a programmer so much easier to be able to generate project files on any platform. What hurts is doing the reverse. I can't count how many hours I've spent

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 23:52:10, Andreas Pakulat wrote: On 07.12.10 13:14:19, Paul Dean wrote: I've been using CMAKE for a few years now and I absolutley LOVE it. It makes my life as a programmer so much easier to be able to generate project files on any platform. What hurts is doing

Re: [CMake] cmake qt4 Lplates

2010-12-10 Thread Andreas Pakulat
On 10.12.10 22:09:29, luxInteg wrote: Greetings, I have my cmake L-plates firmly on ( with a Qt4 project I am stumbling on ) I have these in CMakeLists.txt file:- FIND_PACKAGE( Qt4 REQUIRED ) INCLUDE( ${QT_USE_FILE} ) set(QT_USE_OPENGL TRUE) set(QT_USE_QTSVG TRUE ) SET(

Re: [CMake] can't build translated makefile on snow leopard 10.6.5 w/ g++ 4.2.1 (complaint: g++: No such file or directory, although g++ is there!!)

2010-12-20 Thread Andreas Pakulat
On 20.12.10 23:34:55, ny wrote: The code was never been tested on a mac, not to mention snow leopard. I have the guarantee that it compiles + builds for win + linux. Project was a collaborative effort and unfortunately I am stuck without a makefile =P and with the ugly *.vcproj file. Note that

Re: [CMake] CPack 101

2010-12-23 Thread Andreas Pakulat
On 22.12.10 23:24:35, Andreas Mohr wrote: - there's no cmake -E rename available (perhaps for reasons of build rule atomicity) Hmm my cmake -E help tells me different: ... rename oldname newname- rename a file or directory (on one volume) ... This is cmake version

[CMake] Wrong escaping of custom-command arguments?

2010-12-23 Thread Andreas Pakulat
Hi, it seems that cmake doesn't properly escape the commandlines for custom commands. I'm adding a list of strings which include whitespace and also parenthesis () as arguments to a custom command. Additionally this custom command is running a target built by the same project. Unfortunately

Re: [CMake] CMake 2.8.3 built on OS X crashes on Startup.

2011-01-05 Thread Andreas Pakulat
On 05.01.11 12:34:09, David Cole wrote: cmake-gui needs some further work to be automatically testable. If we launched it as-is on a test run, then it would just hang there forever, waiting for user input as gui apps will do, and the test would timeout. There are also tools out there to

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_CONFIG has no effect

2011-01-07 Thread Andreas Pakulat
On 07.01.11 11:11:18, Martin Magnusson wrote: I'm having trouble setting the runtime output directory, especially with multiple configurations. I'm using CMake 2.8 on Ubuntu 10.04, with gcc. My current root CMakeLists.txt contains SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_CONFIG has no effect

2011-01-07 Thread Andreas Pakulat
On 07.01.11 11:11:18, Martin Magnusson wrote: I'm having trouble setting the runtime output directory, especially with multiple configurations. I'm using CMake 2.8 on Ubuntu 10.04, with gcc. My current root CMakeLists.txt contains SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )

[CMake] Restrictions on where a binary can be put?

2011-01-09 Thread Andreas Pakulat
Hi, I'm having a bit of a problem here changing the runtime output directory for a binary. Its an executable target named 'setup' and I'd like to put it into the top-level directory. Unfortunately it always ends up in the bin/ directory, which is what CMAKE_RUNTIME_OUTPUT_DIRECTORY is being set

Re: [CMake] Restrictions on where a binary can be put?

2011-01-09 Thread Andreas Pakulat
On 09.01.11 14:24:16, Michael Hertling wrote: On 01/09/2011 12:58 PM, Andreas Pakulat wrote: Hi, I'm having a bit of a problem here changing the runtime output directory for a binary. Its an executable target named 'setup' and I'd like to put it into the top-level directory

Re: [CMake] Restrictions on where a binary can be put?

2011-01-09 Thread Andreas Pakulat
On 09.01.11 21:09:37, Andreas Pakulat wrote: On 09.01.11 21:05:21, Andreas Pakulat wrote: On 09.01.11 14:24:16, Michael Hertling wrote: On 01/09/2011 12:58 PM, Andreas Pakulat wrote: Hi, I'm having a bit of a problem here changing the runtime output directory for a binary

Re: [CMake] Restrictions on where a binary can be put?

2011-01-09 Thread Andreas Pakulat
On 09.01.11 22:48:34, Nizar Khalifa Sallem wrote: I don't really understand why you want to get the LOCATION from your target, anyway, the get_target_property works fine if you use set_target_properties before it. [...] ...but SET_TARGET_PROPERTIES() doesn't work fine if it's used

Re: [CMake] CPack and configure_file

2011-01-10 Thread Andreas Pakulat
On 10.01.11 17:26:04, Tobias Ellinghaus wrote: Hello, I create some files inside of CMAKE_CURRENT_BINARY_DIR using configure_file(). These are not installed but needed for compiling the program. When creating a .tgz file with make package_source these files are not included so that the

Re: [CMake] add_subdirectory and link_directories

2011-01-11 Thread Andreas Pakulat
On 11.01.11 10:27:02, Thomas Petazzoni wrote: Hello, On Tue, 11 Jan 2011 01:42:47 +0100 Michael Hertling mhertl...@online.de wrote: Since CMake prefers to specify libraries by path instead of using -l/-L or the like, there's usually no need for the LINK_DIRECTORIES() command, IMO.

Re: [CMake] List operations

2011-01-12 Thread Andreas Pakulat
On 12.01.11 11:56:53, kent williams wrote: I'm generating a list of files with file(GLOB), but then I want to remove some filenames from the resulting list. So essentially I'd like a CMake function like this function(RemoveItemsFromList ListA ListToRemove) endfunction(RemoveItemsFromList)

[CMake] problem getting defines quoted properly

2011-01-14 Thread Andreas Pakulat
Hi, I'm trying to set a define so that it can be used as string-literal in C++ code using add_definitions. This: add_definition( -DMYFOO=\BAR BAZ\ ) works fine on linux, but breaks with MSVC6 on windows. I always thought I understood cmake's quoting rules, but apparently I'm wrong :( I've

Re: [CMake] problem getting defines quoted properly

2011-01-14 Thread Andreas Pakulat
On 14.01.11 21:57:39, Michael Hertling wrote: On 01/14/2011 08:25 PM, Andreas Pakulat wrote: Hi, I'm trying to set a define so that it can be used as string-literal in C++ code using add_definitions. This: add_definition( -DMYFOO=\BAR BAZ\ ) works fine on linux, but breaks

Re: [CMake] Tips on cmake with git submodules?

2011-01-14 Thread Andreas Pakulat
On 14.01.11 14:56:22, James C. Sutherland wrote: The recent thread on ctest and git submodules made me start considering using submodules in a few projects. My question is how to integrate the two build systems (both cmake based). Right now I do a find_package() to resolve the dependent

Re: [CMake] libtool to cmake static-libs combine howto

2011-01-16 Thread Andreas Pakulat
On 16.01.11 16:48:52, luxInteg wrote: Greetings suppose one had a libtool project that did the following Please search for cmake and 'convenience libraries', there's info about this in the FAQ and in the archive of this list. Basically: Don't use them, add the source files directly to

Re: [CMake] problem getting defines quoted properly

2011-01-17 Thread Andreas Pakulat
On 14.01.11 20:25:25, Andreas Pakulat wrote: Hi, I'm trying to set a define so that it can be used as string-literal in C++ code using add_definitions. This: add_definition( -DMYFOO=\BAR BAZ\ ) works fine on linux, but breaks with MSVC6 on windows. I always thought I understood cmake's

  1   2   3   4   5   6   >