Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-06 Thread Eric Noulard
2009/10/7 Romain CHANU : > Yes I agree with you. It would be nice to hide these CMake generated files > (except those that are generated by your CMakeLists.txt and used for > compilation purpose, e.g. files generated by external command like > CodeSynthesis XSD). > One more thing, about the version

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-06 Thread Romain CHANU
Yes I agree with you. It would be nice to hide these CMake generated files (except those that are generated by your CMakeLists.txt and used for compilation purpose, e.g. files generated by external command like CodeSynthesis XSD). One more thing, about the version control integration (SVN) in Ecli

Re: [CMake] help with space in CMAKE_CXX_FLAGS

2009-10-06 Thread Philip Lowman
On Tue, Oct 6, 2009 at 9:16 PM, Philip Lowman wrote: > On Tue, Oct 6, 2009 at 12:49 PM, Philip Lowman wrote: > >> I'm trying to do the following but CMake treats each space in a filename >> as a separate flag: >> >> set(sxsoverride "${CMAKE_CURRENT_SOURCE_DIR}/target_sxs.h") >> set(CMAKE_CXX_FL

Re: [CMake] CMake, Cpack and NSIS woes.

2009-10-06 Thread Andrew Maclean
The only way that I can get this to work is to do this: string(REPLACE "/" "" NATIVE_CMAKE_INSTALL_PATH ${INSTALL_DIRECTORY}) set(CPACK_PACKAGE_INSTALL_DIRECTORY ${NATIVE_CMAKE_INSTALL_PATH} CACHE INTERNAL "") where the INSTALL_DIRECTORY is: VTK_Utilities/CMakeTest_1.1 This lets me creat

Re: [CMake] help with space in CMAKE_CXX_FLAGS

2009-10-06 Thread Philip Lowman
On Tue, Oct 6, 2009 at 12:49 PM, Philip Lowman wrote: > I'm trying to do the following but CMake treats each space in a filename > as a separate flag: > > set(sxsoverride "${CMAKE_CURRENT_SOURCE_DIR}/target_sxs.h") > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI ${sxsoverride}" > > It fails if the

Re: [CMake] CMake, Cpack and NSIS woes.

2009-10-06 Thread Bill Hoffman
Andrew Maclean wrote: I am going to admit the possibility that I am doing something stupid. If so please tell me what I am doing wrong! In a nutshell: Creating a windows package to install to a subdirectory does not work. Also I don't think CPACK_NSIS_DISPLAY_NAME works. In order to illustrate

[CMake] Wrong flags in fortran project when use c library

2009-10-06 Thread Sebas
I have a program write in fortran 95 that use an C library. When I use TARGET_LINK_LIBRARIES( FortranProgram CLibrary ), the FortranProgram project of the VS2008 has compiler flags incorrect. Cmake assign flags of the C compiler. When i use TARGET_LINK_LIBRARIES( FortranProgram ), the flags are cor

Re: [CMake] rdynamic and fpp flags failing

2009-10-06 Thread Brad King
Jason Slemons wrote: > Here are the a.out files. The compiler is including 0x14 characters at the end of string literals. This was preventing the strings extraction in the file(STRINGS) command that CMake uses to parse the binaries. I've committed a fix, and now CMake can extract the id strings o

Re: [CMake] rdynamic and fpp flags failing

2009-10-06 Thread Brad King
Jason Slemons wrote: > Hello Brad, > >> Is this a cross-compiling environment? > > Yes it is, both are linux systems though. I'm mainly curious to see if it > will build for now though. Ill deal with testing the build later. Oh and I > noticed in CMakeSystem.cmake that it says: > SET(CMAKE_CR

[CMake] CTest misses out with code coverage on files whose path is outside PROJECT_SOURCE_DIR

2009-10-06 Thread Wojciech Migda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have found a strange behaviour of ctest when performing code coverage analysis for unit tests. When the unit test binary is linked with a static library compiled from source files located outside the PROJECT_SOURCE_DIR then although the *.gcov f

Re: [CMake] rdynamic and fpp flags failing

2009-10-06 Thread Jason Slemons
Hello Brad, >Is this a cross-compiling environment? Yes it is, both are linux systems though. I'm mainly curious to see if it will build for now though. Ill deal with testing the build later. Oh and I noticed in CMakeSystem.cmake that it says: SET(CMAKE_CROSSCOMPILING "FALSE") But I notice th

[CMake] help with space in CMAKE_CXX_FLAGS

2009-10-06 Thread Philip Lowman
I'm trying to do the following but CMake treats each space in a filename as a separate flag: set(sxsoverride "${CMAKE_CURRENT_SOURCE_DIR}/target_sxs.h") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FI ${sxsoverride}" It fails if there are spaces in the path as CMake seems to expand the entry. Any

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Wojciech Migda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dixon, Shane pisze: > > > I’m using CMake for all of my building. Currently I’m just working > on Windows XP, but I’d like to leave things open for Linux builds in > the near future. Any suggestions on the best testing framework for > a C project t

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Dixon, Shane
Actually, C++ test frameworks aren't entirely useless to me. Most of my code ends up in a DLL which C++ can call into for the testing. However, given how much coding I have to do in C (working with hardware), I am still looking for a good C test framework. Thanks. -- Shane -Original Me

Re: [CMake] rdynamic and fpp flags failing

2009-10-06 Thread Brad King
Hi Jason, I'm keeping this dicussion on-list so it goes in the archives. > I see two flag errors in the CMakeError.log file, one is for fpp and > the other is(buried, just near the end) for rdynamic. I also can add > this about my fortran compiler; it's called ftn and its actually a > wrapper sc

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Daniel Blezek
I'd second the GoogleTest framework. However, it is strictly C++ code. CMake has recently integrated support for automatic detection of GoogleTest (and CTest?) tests by parsing your test code. -dan On 10/6/09 10:45 AM, "Tyler Roscoe" wrote: > On Tue, Oct 06, 2009 at 09:42:23AM -0600, Dixon, S

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Mateusz Loskot
Dixon, Shane wrote: I’m using CMake for all of my building. Currently I’m just working on Windows XP, but I’d like to leave things open for Linux builds in the near future. Any suggestions on the best testing framework for a C project that will be cross-platform compatible and I can use it wi

Re: [CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Tyler Roscoe
On Tue, Oct 06, 2009 at 09:42:23AM -0600, Dixon, Shane wrote: > I'm using CMake for all of my building. Currently I'm just working on > Windows XP, but I'd like to leave things open for Linux builds in the > near future. Any suggestions on the best testing framework for a C > project that will be

[CMake] CTest - C Unit Testing Framework

2009-10-06 Thread Dixon, Shane
I'm using CMake for all of my building. Currently I'm just working on Windows XP, but I'd like to leave things open for Linux builds in the near future. Any suggestions on the best testing framework for a C project that will be cross-platform compatible and I can use it with Windows and Linux?

Re: [CMake] Introduction

2009-10-06 Thread Tyler Roscoe
On Tue, Oct 06, 2009 at 07:32:15PM +0530, kusum kumar wrote: > I am Kusum Madarasu and i'm an undergraduate student . I want to start > contributing to cmake in whatever way possible (preferably coding. ) , > so I would request any admin to introduce me to the things around here Hi Kusum, You

[CMake] Introduction

2009-10-06 Thread kusum kumar
Hello ALL I am Kusum Madarasu and i'm an undergraduate student . I want to start contributing to cmake in whatever way possible (preferably coding. ) , so I would request any admin to introduce me to the things around here .Looking forward for a new thread of development. -

Re: [CMake] rdynamic and fpp flags failing

2009-10-06 Thread Brad King
Jason Slemons wrote: > actually he only gets the second error. I am using cmake/2.8.0-rc2. I’ve > attached the CMakeError.log. How can I get Cmake to suppress these two > flags? Strange enough this works under cmake 2.6.4(meaning these two > flags are not used). The key error message is this: "

Re: [CMake] QNX Cross compiling give internal error ... ?

2009-10-06 Thread Dr . Stefan Sablatnög
Hi Alex, I just tried using cmake-2.8.0-rc1 and it works with no further changes. regards and thanks for the help Stefan -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Dr. Stefan Sablatnög Sent: Dienstag, 6. Oktober 2009 09:58 To: cmake@cm

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-06 Thread Philip Lowman
On Mon, Oct 5, 2009 at 1:48 AM, Romain CHANU wrote: > Hi, > > Thank you for your replies. There is still something unclear for me. > > Let me describe the structure of my project (SVN project): > > branches/ > build/ > tags/ > trunk/ > > I run the cmake command in the build directory (i.e "cmake

Re: [CMake] Hide Visual Studio Projects.

2009-10-06 Thread Fabio Fracassi
Surya Kiran Gullapalli schrieb: On Tue, Oct 6, 2009 at 12:34 PM, Surya Kiran Gullapalli > wrote: Hello All, I came across this blog about hiding visual studio projects

Re: [CMake] Hide Visual Studio Projects.

2009-10-06 Thread Surya Kiran Gullapalli
On Tue, Oct 6, 2009 at 12:34 PM, Surya Kiran Gullapalli < suryakiran.gullapa...@gmail.com> wrote: > Hello All, > I came across this blog about hiding visual studio > projects. >

Re: [CMake] QNX Cross compiling give internal error ... ?

2009-10-06 Thread Dr . Stefan Sablatnög
Hi Alex, no, changing Qnx to QNX does not help. Stefan -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Alexander Neundorf Sent: Samstag, 3. Oktober 2009 14:25 To: cmake@cmake.org Subject: Re: [CMake] QNX Cross compiling give internal error

[CMake] Hide Visual Studio Projects.

2009-10-06 Thread Surya Kiran Gullapalli
Hello All, I came across this blog about hiding visual studio projects. I tried hiding projects on a cmake generated solution file with success. But when i regenerate the solutio