[CMake] Kdevelop cmake project move

2011-06-14 Thread Franz Engel
Hello, I have a little problem. I have to change the directory of my kdevelop-cmake project. But how can I do this? In the cmake-files there are standing the path to the old directory. best regards,    franz ___ Powered by www.kitware.com Visit other

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-14 Thread James Bigler
On Tue, Jun 14, 2011 at 5:18 AM, Łukasz Tasz wrote: > Hi all, > > > > > Other than the 'more elegant' prospect of being able to just put .cu > files > > into a target, is there anything else deficient about the current > FindCUDA > > macros? All you have to do really is to use cuda_add_executabl

Re: [CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.

2011-06-14 Thread jianhua
The background of this question is that I want to build one BrewMP project, the compiler is ARM RVCT40. Original build method is below: 1. Build many static libraries. 2. Link them to elf. 3. Create mod file, final one. Now What I need to do is to achieve these steps by CMAKE, any idea or su

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
Okay really sorry - CMAKE_INSTALL_CONFIG_NAME isn't relavent for things using makefile... should just use CMAKE_BUILD_TYPE... but also I guess a lot of projects don't support that either On Tue, Jun 14, 2011 at 7:11 PM, J Decker wrote: > I wrote a C script that I configure_file on that writes a

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
I wrote a C script that I configure_file on that writes a cmakelists module (might also be a makefile) (I think) The cmake way would be to define PROJECT_LIBRARIES; PROJECT_INCLUDE_DIR; PROJECT_LIBRARY_DIR; PROJECT_INCLUDE_DIR... all of which can be built from knowing CMAKE_INSTALL_PREFIX but you

[CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.

2011-06-14 Thread jianhua
Hi All; No matter Linux or Windows, when try to build SHARED library, it will always get the following error message. ADD_LIBRARY(hello SHARED hello.c) ADD_LIBRARY for library hello is used with the SHARED option, but the target platform supports only STATIC libraries. Building it STATIC inst

[CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread Lori Pritchett-Sheats
My project needs to create and install a Makefile that other client projects could import to link against our project. T I have a simple template file that generates an exported Makefile using the configure_file command, however I'm struggling with how to create a variable that contains all th

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 21:26, schrieb Michael Wild: On 06/14/2011 09:12 PM, Andreas Naumann wrote: Am 14.06.2011 19:26, schrieb Michael Wild: On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann mailto:andreas-naum...@gmx.net>> wrote: Am

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Michael Wild
On 06/14/2011 09:12 PM, Andreas Naumann wrote: > Am 14.06.2011 19:26, schrieb Michael Wild: >> On 06/14/2011 07:12 PM, Kfir Lavi wrote: >> >>> >>> On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann >>> mailto:andreas-naum...@gmx.net>> wrote: >>> >>> Am 14.06.2011 18:12, schrieb Kfir Lavi: >>

[CMake] SWIG, Java and CMake

2011-06-14 Thread Daniel Blezek
We are using SWIG in the SimpleITK project ( https://github.com/SimpleITK/SimpleITK for the interested ) to generate Java wrappings for our library. The problem I¹m having is how to educate CMake about Java. SWIG generates a known-only-at-compile-time set of Java code. CMake prefers to know in ad

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 19:26, schrieb Michael Wild: On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann mailto:andreas-naum...@gmx.net>> wrote: Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code twice. Once with -DA an

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Michael Wild
On 06/14/2011 07:12 PM, Kfir Lavi wrote: > > > On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann > mailto:andreas-naum...@gmx.net>> wrote: > > Am 14.06.2011 18:12, schrieb Kfir Lavi: >> Hi, >> I need to compile the code twice. Once with -DA and once with -DB >> My code look like t

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Kfir Lavi
On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann wrote: > Am 14.06.2011 18:12, schrieb Kfir Lavi: > > Hi, > I need to compile the code twice. Once with -DA and once with -DB > My code look like this: > add_definitions(-DA) > add_library(${mylib_A} SHARED ${myfiles}) > remove_definitions(-DA) > >

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code twice. Once with -DA and once with -DB My code look like this: add_definitions(-DA) add_library(${mylib_A} SHARED ${myfiles}) remove_definitions(-DA) add_definitions(-DB) add_library(${lib_B} SHARED ${myfiles}) remove_

Re: [CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
On 14/06/2011 17:22, David Demelier wrote: Hello, On FreeBSD the status of ncurses is particularly annoying. We have a old curses lib under /usr/lib/libcurses.so that does not provide ncurses functionalities. I tried the following CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(cmak

Re: [CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread aaron . meadows
Looking at FindCurses.cmake, it looks like it will prefer libcurses if it finds it (line 33). Specifically, it will try to determine if libcurses provides ncurses by seeing if libcurses contians the function wsyncup() (line 60). Here is the logic that does this (lines 47-71): # Not sure the l

[CMake] Changing definitions at compile time

2011-06-14 Thread Kfir Lavi
Hi, I need to compile the code twice. Once with -DA and once with -DB My code look like this: add_definitions(-DA) add_library(${mylib_A} SHARED ${myfiles}) remove_definitions(-DA) add_definitions(-DB) add_library(${lib_B} SHARED ${myfiles}) remove_definitions(-DB) What cmake does is to define A

[CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
Hello, On FreeBSD the status of ncurses is particularly annoying. We have a old curses lib under /usr/lib/libcurses.so that does not provide ncurses functionalities. I tried the following CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(cmaketest) set(srcs "main.c") set(CURSES_NE

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-14 Thread Tyler
I believe you're way too late for 2.8.5, but there should be a call for bugs for 2.8.6 coming along shortly after 2.8.5 is released. tyler On Tue, Jun 14, 2011 at 4:50 AM, Johannes Stallkamp wrote: > Hi, > > Would be great if > > http://www.cmake.org/Bug/view.php?id=12260 > > would make it into

Re: [CMake] Post-process compiler output

2011-06-14 Thread Michael Hertling
On 06/14/2011 11:46 AM, Michael Wild wrote: > On 06/14/2011 11:36 AM, Sebastian Schaetz wrote: >> Hi, >> >> I'm using CMake to generate makefiles to build my C++ projects with g++. When >> developing code I find it useful to "post-process" g++ output. In particular >> I >> like to feed the output

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-14 Thread Johannes Stallkamp
Hi, Would be great if http://www.cmake.org/Bug/view.php?id=12260 would make it into 2.8.5. Best Johannes ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messa

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-14 Thread Łukasz Tasz
Hi all, > > Other than the 'more elegant' prospect of being able to just put .cu files > into a target, is there anything else deficient about the current FindCUDA > macros? All you have to do really is to use cuda_add_executable instead of > add_executable. > As far as I understood the topic ai

Re: [CMake] Post-process compiler output

2011-06-14 Thread Michael Wild
On 06/14/2011 11:36 AM, Sebastian Schaetz wrote: > Hi, > > I'm using CMake to generate makefiles to build my C++ projects with g++. When > developing code I find it useful to "post-process" g++ output. In particular I > like to feed the output through gSTLFilt.pl [0] and a custom version of > col

[CMake] Post-process compiler output

2011-06-14 Thread Sebastian Schaetz
Hi, I'm using CMake to generate makefiles to build my C++ projects with g++. When developing code I find it useful to "post-process" g++ output. In particular I like to feed the output through gSTLFilt.pl [0] and a custom version of colorgcc [1]. Currently I have a wrapper around make (I call xma

Re: [CMake] Errors using CMAKE for cross compiling.

2011-06-14 Thread jianhua
Thanks Kishore; It really works as expected after your guidence change. At 2011-06-14 12:47:52,Kishore wrote: >On Tuesday 14 Jun 2011 9:46:56 AM jianhua wrote: >> Try cross compiling using CMAKE, target tool chain is ARM RVCT4, got errors >> on both Windows and Ubuntu. >> >> Please help, t