Re: [CMake] Compilation error in CVS head related to libcmlibarchive.a

2009-11-03 Thread Bill Hoffman
James Bigler wrote: I updated to CVS top of tree and tried to compile on my Mac. I got the following error: Linking CXX executable ../bin/ccmake Undefined symbols: "_lzmadec_init", referenced from: _lzma_bidder_init in libcmlibarchive.a(archive_read_support_compression_xz.c.o) "_lz

[CMake] Compilation error in CVS head related to libcmlibarchive.a

2009-11-03 Thread James Bigler
I updated to CVS top of tree and tried to compile on my Mac. I got the following error: Linking CXX executable ../bin/ccmake Undefined symbols: "_lzmadec_init", referenced from: _lzma_bidder_init in libcmlibarchive.a(archive_read_support_compression_xz.c.o) "_lzmadec_decode", referenced

Re: [CMake] help me to resolve this issue

2009-11-03 Thread Philip Lowman
On Tue, Nov 3, 2009 at 10:40 PM, Alex H wrote: > Okay here's what I've done so far: > > add_definitions(-DV_FILM) > add_executable(hassel-film has-main.cpp) > > remove_definitions(-DV_FILM) > add_definitions(-DV_DIGITAL) > add_executable(hassel-digital has-main.cpp) > > What I want to do is afte

Re: [CMake] help me to resolve this issue

2009-11-03 Thread Bill Lorensen
Try: add_executable(hassel-film has-main.cpp) set_target_properties(hassel-film PROPERTIES COMPILE_DEFINITIONS V_FILM) add_executable(hassel-digital has-main.cpp) set_target_properties(hassel-digital PROPERTIES COMPILE_DEFINITIONS V_DIGITAL) On Tue, Nov 3, 2009 at 10:40 PM, Alex H wrote: > Oka

Re: [CMake] several executables with cmake

2009-11-03 Thread Philip Lowman
On Tue, Nov 3, 2009 at 8:40 PM, Alex H wrote: > I have several executables that I want to be able to run using ctest, how > can I do this? > > As far as I know I can only add one executable to one test, using the > add_test. > > Any ideas? > You should be able to add as many executables as you

Re: [CMake] help me to resolve this issue

2009-11-03 Thread Alex H
But I have only one cpp file and I want it do have different properties... What does the SSE_COMPILE_FLAGS do? > Date: Tue, 3 Nov 2009 22:59:11 -0500 > Subject: Re: [CMake] help me to resolve this issue > From: mike.jack...@bluequartz.net > To: aditya15...@hotmail.com > > set_source_files_pr

Re: [CMake] help me to resolve this issue

2009-11-03 Thread Alex H
Okay here's what I've done so far: add_definitions(-DV_FILM)add_executable(hassel-film has-main.cpp) remove_definitions(-DV_FILM)add_definitions(-DV_DIGITAL)add_executable(hassel-digital has-main.cpp) What I want to do is after running cmake . and typing it make. I want to generate two executabl

[CMake] cmake swig R

2009-11-03 Thread Li, Shenghua
Dear all, Anybody has a template file (CMakeLists.txt) to use swig create R wrapper and compile a c++ library for R package? (The c++ library includes several subdirecotories). Thank you, Shenghua Li ___ Powered by www.kitware.com Vis

[CMake] several executables with cmake

2009-11-03 Thread Alex H
I have several executables that I want to be able to run using ctest, how can I do this? As far as I know I can only add one executable to one test, using the add_test. Any ideas? _ Wind

[CMake] LINK_FLAGS_ bug in Xcode Generator in CVS 2.8 branch and head branch

2009-11-03 Thread Steven Wilson
CMake is ignoring the LINK_FLAGS_ settings for set_target_properties() when using the Xcode generator in the 2.8 branch and the head branch. Thanks, Steve ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.co

[CMake] CMake 2.8.0 RC 5 ready for testing!

2009-11-03 Thread Bill Hoffman
CMake 2.8.0 RC 5 is now ready for people to try. This is getting very close to the final 2.8.0. Only regressions will be addressed, no new features, so please give it a try. Thanks. You can find the source and binaries here: http://www.cmake.org/files/v2.8/. Here are the changes for the 2.

Re: [CMake] Executing a CMake Custom Target from CTest

2009-11-03 Thread Bill Hoffman
Alexander Neundorf wrote: On Tuesday 03 November 2009, Bill Hoffman wrote: Mathieu Malaterre wrote: Hi there, I'd like to know if this is possible to execute a cmake custom target from my nightly ctest script. Eg. In cmake ... ADD_CUSTOM_COMMAND( OUTPUT bla.txt COMMAND echo "bla"

Re: [CMake] RHEL5 - "Eclipse CDT4 - Unix Makefiles" generator no project files are generated just Makefiles

2009-11-03 Thread tech user
Hi All Sorry about that there is no problem at all. :-) it is just that the project files are hidden by default Thanks TechSgin On Tue, Nov 3, 2009 at 8:24 PM, tech user wrote: > Hi All > > We have *successfully build\compiled cmake-2.6.4 on linux RHEL5. > > Still when we select the "Ecli

[CMake] RHEL5 - "Eclipse CDT4 - Unix Makefiles" generator no project files are generated just Makefiles

2009-11-03 Thread tech user
Hi All We have *successfully build\compiled cmake-2.6.4 on linux RHEL5. Still when we select the "Eclipse CDT4 - Unix Makefiles" generator no project files are generated just Makefiles ? We have Eclipse CDT4 installed on the relevant machine. Many Thanks TechSgin ___

Re: [CMake] Executing a CMake Custom Target from CTest

2009-11-03 Thread Alexander Neundorf
On Tuesday 03 November 2009, Bill Hoffman wrote: > Mathieu Malaterre wrote: > > Hi there, > > > > I'd like to know if this is possible to execute a cmake custom > > target from my nightly ctest script. > > Eg. In cmake > > > > ... > > ADD_CUSTOM_COMMAND( > > OUTPUT bla.txt > > COMMAND e

Re: [CMake] RHEL5 - "Eclipse CDT4 - Unix Makefiles" generator no project files are generated just Makefiles

2009-11-03 Thread Alexander Neundorf
On Tuesday 03 November 2009, tech user wrote: > Hi All > > We have *successfully build\compiled cmake-2.6.4 on linux RHEL5. > > Still when we select the "Eclipse CDT4 - Unix Makefiles" generator no > project files are generated just Makefiles ? Are you sure ? Eclipse project files are hidden .proj

Re: [CMake] INCLUDE_DIRECTORIES and relative path

2009-11-03 Thread Bill Hoffman
jago jagoc wrote: Hi Bill, Sorry if i reply the issues but it's strange that the INCLUDE_DIRECTORIES add the project dir to all its parameter. Is there a way to include some dir with INCLUDE_DIRECTORIES macro without the project directory before? I would like to add only a relative path ..\..\in

Re: [CMake] Executing a CMake Custom Target from CTest

2009-11-03 Thread Bill Hoffman
Mathieu Malaterre wrote: Hi there, I'd like to know if this is possible to execute a cmake custom target from my nightly ctest script. Eg. In cmake ... ADD_CUSTOM_COMMAND( OUTPUT bla.txt COMMAND echo "bla" > bla.txt VERBATIM ) ADD_CUSTOM_TARGET(BLA DEPENDS ${CMAKE_CURRENT_

[CMake] MIDL compiler output path

2009-11-03 Thread Jeroen Dierckx
Hi, I am trying to build an ActiveX control using cmake, and tried adding the associated .idl files as source files to the shared library project. There seems to be support for automatically building these idl files, but apart from bug 8165 (http://public.kitware.com/Bug/view.php?id=8165) there se

Re: [CMake] [CTest] Access test data from c++ code

2009-11-03 Thread Thomas
Yes it works. My questions was if this is the way it should be done. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] [CTest] Access test data from c++ code

2009-11-03 Thread Tyler Roscoe
On Tue, Nov 03, 2009 at 04:59:22PM +0100, Thomas wrote: > I want to write a test, that needs pregenerated test data. What is the > correct way to access and store it? > > My idea is to put it into the source tree like: > > File structure: > /mylib/ > /mylib/test/CMakeLists.txt > /mylib/test/data.

[CMake] [CTest] Access test data from c++ code

2009-11-03 Thread Thomas
Hallo, I want to write a test, that needs pregenerated test data. What is the correct way to access and store it? My idea is to put it into the source tree like: File structure: /mylib/ /mylib/test/CMakeLists.txt /mylib/test/data.txt <- pregenerated test data /mylib/test/test.cpp In CMakeLists.

Re: [CMake] Bug in 2.8 branch (Head branch also)

2009-11-03 Thread Steven Wilson
I have verified that the issue is fixed in the CVS head branch. Thanks for the quick fix. Steve On Tue, Nov 3, 2009 at 8:04 AM, Bill Hoffman wrote: > >> Pretty sure this is fixed in CVS, and will be in the next RC, can you try > CVS head? That said this is still bad CMake code as there is no

Re: [CMake] Bug in 2.8 branch (Head branch also)

2009-11-03 Thread Bill Hoffman
Steven Wilson wrote: Consider the following: foo.cpp #include int main() { std::cout << "foo" << std::endl; return 0; } CMakeLists.txt cmake_minimum_required(VERSION 2.6.4) add_executable(foo foo.cpp) set(BUILD_FOO ON PARENT_SCOPE) With CMake built from the CMake-2-8 branch and

Re: [CMake] INCLUDE_DIRECTORIES and relative path

2009-11-03 Thread jago jagoc
Hi Bill, Sorry if i reply the issues but it's strange that the INCLUDE_DIRECTORIES add the project dir to all its parameter. Is there a way to include some dir with INCLUDE_DIRECTORIES macro without the project directory before? I would like to add only a relative path ..\..\include to my Visual

Re: [CMake] FindBoost: FIND_PACKAGE ( Boost COMPONENTS filesystem )

2009-11-03 Thread Mathieu Malaterre
The way I see it to address is that 'system' is an internal details (AFAIK). It should be automatically pulled in for filesystem and wave (for boost > 1.34), instead of the contrary (removing system when using boost 1.34). So this means I will be breaking the interface... Comments anyone ? On Tue

Re: [CMake] FindBoost: FIND_PACKAGE ( Boost COMPONENTS filesystem )

2009-11-03 Thread Philip Lowman
This was addressed on the mailing list and I thought had been resolved based on user feedback. The code which is supposed to fix this is on line 326 of FindBoost as checked into CVS. A patch would be appreciated if the code doesn't work for you. See also bug 8734 On Nov 3, 2009 5:05 AM, "Mathie

[CMake] Executing a CMake Custom Target from CTest

2009-11-03 Thread Mathieu Malaterre
Hi there, I'd like to know if this is possible to execute a cmake custom target from my nightly ctest script. Eg. In cmake ... ADD_CUSTOM_COMMAND( OUTPUT bla.txt COMMAND echo "bla" > bla.txt VERBATIM ) ADD_CUSTOM_TARGET(BLA DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bla.txt) ...

[CMake] Software engineer position available at the INRIA Sophia Antipolis, France

2009-11-03 Thread Pierre Fillard
Dear all, A software engineer position is available at the INRIA Sophia Antipolis on the French Riviera, within the Asclepios research team ( http://www-sop.inria.fr/asclepios/). The engineer's task will be to develop MedINRIA v2.0, an open-source, clinically-oriented image processing and visualiz

Re: [CMake] FindBoost: FIND_PACKAGE ( Boost COMPONENTS filesystem )

2009-11-03 Thread Mathieu Malaterre
Hi Philip, That's where I stop understanding. I cannot state this: FIND_PACKAGE ( Boost COMPONENTS filesystem REQUIRED) # ideal If I follow your suggestion I need to express an internal dependencie at user level: FIND_PACKAGE ( Boost COMPONENTS filesystem system REQUIRED) which fails for

Re: [CMake] Bug in 2.8 branch (Head branch also)

2009-11-03 Thread Mathieu Malaterre
You are using a /very/ ancient CVS HEAD ;) It was fixed yesterday On Tue, Nov 3, 2009 at 2:09 AM, Steven Wilson wrote: > Consider the following: > > foo.cpp > > #include > > int main() > { >     std::cout << "foo" << std::endl; >     return 0; > } > > > CMakeLists.txt > > cmake_minimum_required

Re: [CMake] Bug in 2.8 branch (Head branch also)

2009-11-03 Thread Michael Wild
On 3. Nov, 2009, at 2:09 , Steven Wilson wrote: Consider the following: foo.cpp #include int main() { std::cout << "foo" << std::endl; return 0; } CMakeLists.txt cmake_minimum_required(VERSION 2.6.4) add_executable(foo foo.cpp) set(BUILD_FOO ON PARENT_SCOPE) With CMake built fr