Re: [CMake] add_custom_command depends on output from add_custom_target

2010-11-01 Thread Rolf Eike Beer
Am Monday 01 November 2010 schrieb SK: > I know add_custom_target does not produce output as far as CMake is > concerned. My situation is as follows: > > A traditional make process that I cannot modify produces a target on > which I must do some post-processing. > > I use add_custom_target to fo

Re: [CMake] Flags when building objects or a target

2010-11-01 Thread Rolf Eike Beer
Am Tuesday 02 November 2010 schrieb mina adel: > Hi Please don't start a new discussion by replying to an old one. This completely breaks threading. > I have a problem when cmake builds the objects for shared library. > > I have the following in my cmaklists.txt > > set(SIMULATOR_SOURCES circu

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-11-01 Thread Michael Hertling
On 11/01/2010 01:22 AM, Marcus D. Hanwell wrote: > On Sun, Oct 31, 2010 at 7:30 PM, Campbell Barton wrote: >> Hi I saw in the log you added a case for Python 2.7, >> Would you be able to add a check for Python 3.x ? >> >> For Blender 3D we use CMake and only support python 3.x series. > > I added

Re: [CMake] Flags when building objects or a target

2010-11-01 Thread Michael Hertling
On 11/02/2010 01:58 AM, mina adel wrote: > Hi > > > I have a problem when cmake builds the objects for shared library. > > I have the following in my cmaklists.txt > > set(SIMULATOR_SOURCES circuit.cc matrix.cc plot.cc sources.cc > sparse.cc btzdense.cc element.cc util.cc parse.c > ne

Re: [CMake] Converting from autoconf to cmake problem

2010-11-01 Thread mina adel
I think that would be a good idea to implement AC_* macros as CMAK_* macros. it will really help Thank you From: Clifford Yapp To: mina adel Cc: cmake@cmake.org Sent: Sat, October 30, 2010 3:36:44 PM Subject: Re: [CMake] Converting from autoconf to cmake pro

[CMake] Flags when building objects or a target

2010-11-01 Thread mina adel
Hi I have a problem when cmake builds the objects for shared library. I have the following in my cmaklists.txt set(SIMULATOR_SOURCES circuit.cc matrix.cc plot.cc sources.cc sparse.cc btzdense.cc element.cc util.cc parse.c netlist_parse.y netlist_lex.l circuit_step.cc zmatrix.cc h

Re: [CMake] add_custom_command depends on output from add_custom_target

2010-11-01 Thread Michael Hertling
On 11/01/2010 10:47 PM, SK wrote: > I know add_custom_target does not produce output as far as CMake is > concerned. My situation is as follows: > > A traditional make process that I cannot modify produces a target on > which I must do some post-processing. > > I use add_custom_target to force t

[CMake] Failing HTML (xmllint) test in the CMake dashboard results...

2010-11-01 Thread David Cole
Starting last Friday, apparently unrelated to any CMake source code changes, the CMake.HTML test started failing on several platforms: http://www.cdash.org/CDash/queryTests.php?project=CMake&date=2010-11-01&filtercount=1&showfilters=1&field1=testname/string&compare1=63&value1=HTML It appears to b

[CMake] add_custom_command depends on output from add_custom_target

2010-11-01 Thread SK
I know add_custom_target does not produce output as far as CMake is concerned. My situation is as follows: A traditional make process that I cannot modify produces a target on which I must do some post-processing. I use add_custom_target to force the makefile to always run. I use add_custom_comm

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Mateusz Loskot
On 01/11/10 15:31, Adam J Richardson wrote: > On Mon, 01 Nov 2010 14:25:24 + > "Mateusz Loskot" wrote: >> Hi, >> You may find the one in SOCI repo useful >> http://soci.git.sf.net/ > >> And go to src/cmake/modules > > Thanks Mateusz, that's great! I only needed to add "odbc32" to the list >

Re: [CMake] Are header-only targets supported?

2010-11-01 Thread Ryan Pavlik
I've also done something like this: set(SOURCES LockFreeBuffer.h Saturate.h Stride.h) add_custom_target(UtilityHeaders SOURCES ${SOURCES}) Ryan On 11/01/2010 08:58 AM, aaron_wri...@selinc.com wrote: I have a couple projects like that in my build. I just make a "dumby.cpp" file that

[CMake] fun with Boost - swap absolute library path for -L and -l?

2010-11-01 Thread Adam J Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, I'm having some fun making link errors with the help of Boost on Win32. With a main.cc of: " #include "boost/thread.hpp" int main(int, char **) { boost::thread t; return 0; } " and a CMakeLists.txt of: " cmake_minimum_required(VERS

Re: [CMake] Is there a tool pretty much like cmake for Java?

2010-11-01 Thread Michał Czuczman
On 10/22/2010 10:58 PM, Ben Boeckel wrote: > On Fri, Oct 22, 2010 at 04:45:42PM -0400, Ben Boeckel forgot to attach > files > > Actually attaching things now. > > --Ben This is still not a perfect solution. 1. The script guesses output class file names only from source file names. So one canno

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Adam J Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 01 Nov 2010 14:25:24 + "Mateusz Loskot" wrote: > Hi, > You may find the one in SOCI repo useful > http://soci.git.sf.net/ > > And go to src/cmake/modules Thanks Mateusz, that's great! I only needed to add "odbc32" to the list of library

Re: [CMake] Using msbuild

2010-11-01 Thread Bill Hoffman
On 11/1/2010 9:46 AM, Thomas Lehmann wrote: Perfect! Why does it not work with “msbuild” directly? Kind Regards Thomas f:\Checkouts\prototyping\cmake_sandbox\obj>cmake --build . --target install Microsoft (R) Visual Studio Version 9.0.21022.8. Copyright (C) Microsoft Corp. Alle Rechte vorb

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Mateusz Loskot
Hi, You may find the one in SOCI repo useful http://soci.git.sf.net/ And go to src/cmake/modules -- Mateusz Łoskot, http::/mateusz.loskot.net (Sent from my mobile) - Reply message - From: "Adam J Richardson" Date: Mon, Nov 1, 2010 11:48 Subject: [CMake] FindODBC.cmake To: -BEGIN P

Re: [CMake] Are header-only targets supported?

2010-11-01 Thread Aaron_Wright
I have a couple projects like that in my build. I just make a "dumby.cpp" file that is completely empty and give that to add_library() with the other headers. It seems to make everyone happy. --- Aaron Wright From: "Pedro d'Aquino" To: cmake@cmake.org Date: 11/01/2010 06:02 AM Subject: [CMa

Re: [CMake] Using msbuild

2010-11-01 Thread Thomas Lehmann
Perfect! Why does it not work with "msbuild" directly? Kind Regards Thomas f:\Checkouts\prototyping\cmake_sandbox\obj>cmake --build . --target install Microsoft (R) Visual Studio Version 9.0.21022.8. Copyright (C) Microsoft Corp. Alle Rechte vorbehalten. 1> Thomas Lehmann Scrum Master -

Re: [CMake] Are header-only targets supported?

2010-11-01 Thread David Cole
You could use a block like this: if(CMAKE_GENERATOR STREQUAL "Xcode") ... endif() HTH, David On Mon, Nov 1, 2010 at 8:54 AM, Pedro d'Aquino wrote: > Hi, > > I'd like to add some header-only targets to my build in order to aid > in project-browsing in IDEs such as Xcode. > > If I do "add_lib

Re: [CMake] Using msbuild

2010-11-01 Thread David Cole
If you open up the sln file in Visual Studio, is there an INSTALL target? You can try using cmake --build on the command line: cmake --build . --target install --config Debug Should work... Let us know, David On Mon, Nov 1, 2010 at 8:30 AM, Thomas Lehmann wrote: > Hi all, > > > > on Unix

[CMake] Are header-only targets supported?

2010-11-01 Thread Pedro d'Aquino
Hi, I'd like to add some header-only targets to my build in order to aid in project-browsing in IDEs such as Xcode. If I do "add_library( Common ${header_list} )" the new target shows up and compiles fine in Xcode, but when I try to compile it using make, I get the following errors:

Re: [CMake] Converting a large C++-Project to CMake

2010-11-01 Thread Michael Jackson
There has since been a 1.0 release which seems to work very well. ftp://ftp.qt.nokia.com/jom/jom.zip ___ Mike Jackson www.bluequartz.net On Nov 1, 2010, at 7:35 AM, Verweij, Arjen wrote: Benjamin, If you haven't a

[CMake] Using msbuild

2010-11-01 Thread Thomas Lehmann
Hi all, on Unix I can use "make install" but I have no clue how do it on windows. Can somebody please help? This is what I have defined in my demo environment: install(TARGETS app2 RUNTIME DESTINATION ${CMAKE_BINARY_DIR}/bin) Try: msbuild Project.sln /target:install > INSTALL: > The project "I

[CMake] FindODBC.cmake

2010-11-01 Thread Adam J Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, Does anyone know of a good FindODBC.cmake I can grab from somewhere? My Modules directory lacks one. :/ If not I'll write a quick one for inclusion in the new release. I'll assume either Win32 standard or unixodbc is fine since they're compa

Re: [CMake] Converting a large C++-Project to CMake

2010-11-01 Thread Verweij, Arjen
Benjamin, >> >> If you haven't already, you might want to take a lot at JOM, which is >> essentially parallel nmake: http://qt.gitorious.org/qt-labs/jom. JOM >> is supported by CMake. > >Thank you Pedro. One of our developers already tried to plug jom into >our current build system, but some troub

Re: [CMake] How to work around broken Find module

2010-11-01 Thread Marcel Loose
Hi Alex, On Sun, 2010-10-31 at 10:20 +0100, Alexander Neundorf wrote: > On Thursday 28 October 2010, Marcel Loose wrote: > > Hi all, > > > > What is the best way to work around a broken Find module? > > > > A technique I've used up till now is to wrap the broken module in a > > module with the sam

Re: [CMake] ADD_CUSTOM_COMMAND, crating file with echo redirection, platform independent

2010-11-01 Thread Michael Hertling
On 10/27/2010 08:02 PM, Arne Pagel wrote: > Hello, > > I need a custom command in my build process. > The tool that I am using has a small problem, I have to insert a line of code > in > the output file manually: > #include > > I tried this with echo and output redirection: > echo "#include " >

Re: [CMake] Converting a large C++-Project to CMake

2010-11-01 Thread Michael Wild
On 1. Nov, 2010, at 5:53 , Benjamin King wrote: > Hi Karl! > > >> I'm currently (as a consultant) converting ~2.5 Mio LOC C++/C from >> vcproj/Makefiles/qmake to cmake. > > Can you say something of the motivations for your client to do this? > > I suspect that you are expected to keep most o