[CMake] Problem with Linking CXX shared module

2009-05-27 Thread nazia zaman
Hi all, I'm trying to compile a small module using boost python which is like this: /* File : test.cpp */ #include #include using namespace boost::python; class Test { public: std::string test() { return "Test passed."; }; }; BOOST_PYTHON_MODULE(test) { class_("Test") .def("tes

Re: [CMake] Relative include() calls

2009-05-27 Thread Tyler Roscoe
On Wed, May 27, 2009 at 11:27:28PM -0500, Robert Dailey wrote: > From a CMakeLists.txt in my root source dir, I am calling: > include( ../cmake/common.cmake ) > > From common.cmake, I am calling: > > include( BoostUtils.cmake ) > > BoostUtils.cmake and common.cmake are side-by-side in the same d

Re: [CMake] Question about -E cmake_progress_start ...

2009-05-27 Thread Tyler Roscoe
On Wed, May 27, 2009 at 06:30:13PM -0700, Xiangyun Kong wrote: > I could not find any documentation about the semantics of > the following command, > >cmake -E cmake_progress_start Makefile 1 I haven't read the code or anything but I believe this has to do with generating those snazzy [NN%] p

[CMake] Relative include() calls

2009-05-27 Thread Robert Dailey
>From a CMakeLists.txt in my root source dir, I am calling: include( ../cmake/common.cmake ) >From common.cmake, I am calling: include( BoostUtils.cmake ) BoostUtils.cmake and common.cmake are side-by-side in the same directory on Windows. The second call to include() fails, because the working

[CMake] Question about -E cmake_progress_start ...

2009-05-27 Thread Xiangyun Kong
Hi, I could not find any documentation about the semantics of the following command, cmake -E cmake_progress_start Makefile 1 The cmake documention says -E should only following one of supported commands like make_directory. I do see the above style of usage in a lot of places, but fail to

Re: [CMake] How to guarntee the sequence of build if no target can be used

2009-05-27 Thread Tyler Roscoe
On Wed, May 27, 2009 at 11:01:51PM +, idlecat...@gmail.com wrote: > foo.h is generated from foo.x. And foo.h is included by bar.h. And then > bar.h is included by a lot of c files. So actually every c files including > bar.h depends on foo.h. > But the file number is so big that I don't wan

[CMake] How to guarntee the sequence of build if no target can be used

2009-05-27 Thread idlecat511
Hi, This situation is: foo.h is generated from foo.x. And foo.h is included by bar.h. And then bar.h is included by a lot of c files. So actually every c files including bar.h depends on foo.h. But the file number is so big that I don't want to add dependency for each one. How can I spec

Re: [CMake] Compiling a project that uses Qt

2009-05-27 Thread Michael Jackson
Try this example Project: http://www.bluequartz.net/software/files/QtTest.zip _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

[CMake] Compiling a project that uses Qt

2009-05-27 Thread Pascale B
Hi, I have a project developed in visual Studio 2008, in C++. I was asked to compile it in Linux. I'm completely new to using CMAKE. I have created a CMakeLists.txt file for my project and was able to build successfully one library. However my main program needs Qt applications to run. Her

Re: [CMake] Problem with ASM and COMPILE_DEFINITIONS

2009-05-27 Thread Marcel Loose
Hi all, I've done some more digging and found the culprit: using add_definitions() with a quoted string containing more than one argument. So, for example, the following command defines preprocessor variables that are NOT discarded by CMake when /usr/bin/as is called. add_defintions("-DMYDEF -

Re: [CMake] Problem with ASM and COMPILE_DEFINITIONS

2009-05-27 Thread Marcel Loose
Hi Torsten, Thanks for the info, but CMake 2.6.4 doesn't solve my problem. I must be doing something wrong, but I haven't found out yet what exactly. I'll continue digging. Best regards, Marcel Loose. -Original Message- From: Torsten Maehne To: cmake@cmake.org Subject: Re: [CMake] Prob

Re: [CMake] Dynamic library problem.

2009-05-27 Thread Hendrik Sattler
Zitat von Andrew Maclean : I am not sure whether this is a CMake setting or not. However we are building an application that links against a library in /usr/local/lib called e.g libPocoFoundation.so (this is a symbolic link to libPocoFoundation.so.6). When we try to run the code on another syste

[CMake] Dynamic library problem.

2009-05-27 Thread Andrew Maclean
I am not sure whether this is a CMake setting or not. However we are building an application that links against a library in /usr/local/lib called e.g libPocoFoundation.so (this is a symbolic link to libPocoFoundation.so.6). When we try to run the code on another system it fails because in that sys

[CMake] Building a FreeBSD port with CPack

2009-05-27 Thread Jean-Pierre Bergamin
Hello CMake-Users Has anyone already tried to build a proper FreeBSD port with CPack? I think it would not be too hard to build a generator that creates a Makefile to build a FreeBSD port. Is there any documentation how to create a new CPack generator? Thanks in advance Jean-Pierre Bergamin

Re: [CMake] Problem with ASM and COMPILE_DEFINITIONS

2009-05-27 Thread Torsten Maehne
Hello Marcel, you've stumpled on a bug in CMake , which has been fixed in CMake 2.6.4. Best regards, Torsten Marcel Loose schrieb: Hi all, I have a problem compiling assembly files. I followed the directions on the Wiki http://www.cmake.org/Wiki/

Re: [CMake] Mixing C/CPP and Fortran

2009-05-27 Thread Arjen Markus
Hello Alin, that _could_ be a good reason :), but why not try to verify this manually: - Small C main program calling a Fortran routine - The Fortran routine in a library - Link via the Fortran compiler Some Fortran compilers will need to know that the main program is not in Fortran, others do

Re: [CMake] Mixing C/CPP and Fortran

2009-05-27 Thread Alin M Elena
> why not try to make Fortran the main language? Because the main is C? Alin -- __ "If the Universities will not study useless subjects, who will?" G. F. FitzGerald, Nature, 45/46, 392 (1892) ___

Re: [CMake] Macro callbacks

2009-05-27 Thread Marcel Loose
Justin, That's not possible with CMake. I posted a similar question a couple of months ago. See this thread: http://www.mail-archive.com/cmake@cmake.org/msg19596.html Regards, Marcel Loose. -Original Message- From: KSpam To: cmake Subject: [CMake] Macro callbacks Date: Tue, 26 May 2009