Re: [CMake] the switch to subversion?

2008-09-24 Thread Jesper Eskilson
Esben Mose Hansen wrote: On Tuesday 23 September 2008 18:10:05 Mathieu Malaterre wrote: svn 'external' links to repositories (not tested). Do not know what is the default behavior for branching... I'd stay away from svn:externals. We used those extensively in my company, and they are a

[CMake] Building shared libs on visual

2008-09-24 Thread Julien Michel
Dear Cmake users and developpers, Our project builds fine with cmake and we can sucessfully generate shared library( so files ) under Unix/Linux systems when using the appropriate flag. However, when it comes to windows systems, visual always build .lib files, even when activating the shared

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Werner Smekal
Hi, maybe you forgot to export symbols? http://www.cmake.org/Wiki/BuildingWinDLL Regards, Werner On 24.09.2008, at 10:59, Julien Michel wrote: Dear Cmake users and developpers, Our project builds fine with cmake and we can sucessfully generate shared library( so files ) under Unix/Linux

[CMake] executable output path vs executable runtime path

2008-09-24 Thread Mehdi Rabah
Hi, I'm trying to copy files in the executable *output* directory but I don't know how to do it in the way that works in Eclipse CDT and Visual Studio. I set my variable executable_output_path (which was changed to cmake_runtime_output_path?) to $cmake_binary_dir/bin, and it works in Eclipse, but

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Julien Michel
Werner Smekal a écrit : Hi, maybe you forgot to export symbols? http://www.cmake.org/Wiki/BuildingWinDLL Dear Werner, Thank you, I did search the cmake Wiki for something like that, but I did not manage to find this page. I think we are exporting/importing our symbols in most of the case,

Re: [CMake] executable output path vs executable runtime path

2008-09-24 Thread Werner Smekal
Hi, this might not be the best way (i.e. a hack), but you could use get_target_property http://www.cmake.org/cmake/help/ cmake-2.6.html#command:get_target_property to get the path to your executable and then use get_filename_property http://www.cmake.org/cmake/help/

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Werner Smekal
Hi Julien, This lead me to another question: In the wiki page, it is suggested to do the following: #if defined (_WIN32) #if defined(MyLibrary_EXPORTS) #define MYLIB_EXPORT __declspec(dllexport) #else #define MYLIB_EXPORT __declspec(dllimport) #endif /* MyLibrary_EXPORTS */ #else /*

[CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Thomas Veith
Hi *, when using a simple CMakeLists.txt like the following: cmake_minimum_required(VERSION 2.6) PROJECT(socket) add_definitions( -D_CRT_SECURE_NO_WARNINGS ) add_library(socket STATIC ../../src/base64.cpp ../../src/http.cpp ../../src/PoolThread.cpp ../../src/ResourceHandler.cpp

Re: [CMake] [New Module] Protocol buffers

2008-09-24 Thread Esben Mose Hansen
On Friday 19 September 2008 21:57:18 Esben Mose Hansen wrote: Hi, I have created a module for Google's protocol buffers. It works for me, but will of course need adjustments for various non-unix platforms. And testing :) Is there something I can do to move this onwards? Personally, I

[CMake] Adding non-source file dependency to Executable

2008-09-24 Thread Corrin Meyer
This is probably a really noob question... I am using CMake in a cross-compiler environment (which seems to be working really well) and am using custom linker scripts for our embedded target. How do I get the built executable to depend on the linker script? I have tried 'add_depedencies',

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Michael Jackson
target_link_libraries(socket ws2_32) Cmake will figure out the proper suffix to use. Mike On Sep 24, 2008, at 4:56 AM, Thomas Veith wrote: target_link_libraries(socket ws2_32.lib ___ CMake mailing list CMake@cmake.org

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Michael Jackson
On Sep 24, 2008, at 5:47 AM, Julien Michel wrote: Werner Smekal a écrit : Hi, maybe you forgot to export symbols? http://www.cmake.org/Wiki/BuildingWinDLL Dear Werner, Thank you, I did search the cmake Wiki for something like that, but I did not manage to find this page. I think we are

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Julien Michel
dear Michael, I was expecting something like that but as I am not very familiar with building libraries on windows, I was not sure wether I was right or wrong. Thank you very much, Best regards, Julien Michael Jackson a écrit : Julien, Funny. I wrote that wiki entry and it was a bit

Re: [CMake] executable output path vs executable runtime path

2008-09-24 Thread Philip Lowman
On Wed, Sep 24, 2008 at 3:17 AM, Mehdi Rabah [EMAIL PROTECTED] wrote: Hi, I'm trying to copy files in the executable *output* directory but I don't know how to do it in the way that works in Eclipse CDT and Visual Studio. I set my variable executable_output_path (which was changed to

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2008-09-24 Thread Luis Ibanez
Hi Rupert, If you have got this to work in your local build, please feel free to commit the changes to ITK. In that way we can test them early enough before the release of ITK 3.10. Please note that currently we only have one build testing an installed version of ITK. This is done by building

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Michael Jackson
Did you try running cmake from a clean build directory? Also, can cmake actually find the ws2_32 library? Were there warnings when you ran cmake? You may have to use the Find_Library() command to actually find the ws2_32 library before CMake can use it. Just guessing at this point. Mike

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Bill Hoffman
Thomas Veith wrote: Hi *, when using a simple CMakeLists.txt like the following: cmake_minimum_required(VERSION 2.6) PROJECT(socket) add_definitions( -D_CRT_SECURE_NO_WARNINGS ) add_library(socket STATIC ../../src/base64.cpp ../../src/http.cpp ../../src/PoolThread.cpp

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2008-09-24 Thread Brad King
Luis Ibanez wrote: If you have got this to work in your local build, please feel free to commit the changes to ITK. In that way we can test them early enough before the release of ITK 3.10. [snip] Brad for pointing me to this). I'm using CMake 2.6.1 - I THINK its supported in 2.4, but again,

Re: [CMake] [Insight-users] INSTALL(EXPORT): Make ITK 3.10 require CMake 2.6 ?

2008-09-24 Thread Luis Ibanez
Brad King wrote: Luis Ibanez wrote: If you have got this to work in your local build, please feel free to commit the changes to ITK. In that way we can test them early enough before the release of ITK 3.10. [snip] Brad for pointing me to this). I'm using CMake 2.6.1 - I THINK its

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Thomas Veith
Hi Bill, Thanks a lot! I did add_executable(foo foo.cpp) add_dependencies(foo socket) and wasnt aware that I also need target_link_libraries(foo socket) Now it works! Thank you a lot for your help! Best regards, Thomas 2008/9/24 Bill Hoffman [EMAIL PROTECTED]: Thomas Veith wrote: Hi *,

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2008-09-24 Thread Rupert Brooks
Brad is absolutely right - I think this is not quite ready for prime time yet. Thats why i didnt check it in :-) On the other hand, for my current situation, this is very useful - nearly essential, so thats why i shared it. If I follow you correctly, Luis, theres only one current test that

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Bill Hoffman
Thomas Veith wrote: Hi Bill, Thanks a lot! I did add_executable(foo foo.cpp) add_dependencies(foo socket) and wasnt aware that I also need target_link_libraries(foo socket) Now it works! Actually, you don't need that add_dependencies call either. That is only needed to force something

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2008-09-24 Thread Brad King
Rupert Brooks wrote: Checking this in would break every test running against a build tree. Not only does this approach require an install tree, it unfortunately destroys the ability to link against the build tree. I spent some effort trying to figure out how to get around this, and i

[CMake] .RC files and Icon with Visual Studio

2008-09-24 Thread Joachim de Vries
CMake version 2.6-patch 0 Visual Studio 2005 Windows XP Hi, does anyone know how to add resource files to my visual studio project via cmake? I need it to include the application icon for my project. Thanks for your help Regards Joachim de Vries

Re: [CMake] .RC files and Icon with Visual Studio

2008-09-24 Thread cyril_wobow
This works fine for me : ADD_EXECUTABLE(myexe resources/GeomAction2008.rc ... ) Joachim de Vries a écrit : CMake version 2.6-patch 0 Visual Studio 2005 Windows XP Hi, does anyone know how to add resource files to my visual studio project via cmake? I need it

Re: [CMake] adding files to a custom target

2008-09-24 Thread Timenkov Yuri
Use add_custom_command to compile your files. This one accepts source and destination file names for proper dependency handling. Next, use add_custom_target command with dependencies on add_custom_target's output. For example: add_custom_command(OUTPUT myscript.compiled COMMAND compile_script

Re: [CMake] Link Problem

2008-09-24 Thread Timenkov Yuri
On Tue, Sep 23, 2008 at 10:10 AM, Sharma, Gaurav [EMAIL PROTECTED] wrote: Hi All, Can anybody tell me that If I wish to link my one static lib 'A' with other multiple static libs statically(all these libs should become part of my 'A') on Borland c++ 5.5 platform then how can I do that.

Re: [CMake] multi-line definitions

2008-09-24 Thread Timenkov Yuri
On Tue, Sep 23, 2008 at 11:05 PM, George Neill [EMAIL PROTECTED] wrote: Hi Manu, On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot [EMAIL PROTECTED] wrote: The only way would be something like this: set(a -mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions) set(a ${a}

Re: [CMake] multi-line definitions

2008-09-24 Thread George Neill
Yuri On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot [EMAIL PROTECTED] wrote: The only way would be something like this: set(a -mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions) set(a ${a} -ffunction-sections -fdata-sections ) set(a ${a} -fno-strict-aliasing -mno-thumb -Os

[CMake] Problem with a macro

2008-09-24 Thread Leopold Palomo Avellaneda
Hi, I'm trying to develop a macro to create gmo files (binarys from .po) for a project that uses gettext. This macro gets some parameters, The idea is that you have program: foo a template with the strings: foo.pot (the potfile) several languages to translate: ca en es de (the langs var) and a

Re: [CMake] newbie question about inline functions

2008-09-24 Thread Timenkov Yuri
On Wed, Sep 24, 2008 at 5:11 AM, Roy Zuo [EMAIL PROTECTED] wrote: Thanks a lot, and list(REMOVE_ITEM ...) works well for me. Another stupid question, as I am really new to c++. There are some cpp files containing only inline functions and some template class functions. The could not be

[CMake] cmakesetup launch discrepancy

2008-09-24 Thread Aleksander Demko
The commands: cmakesetup \src\mysource and cmakesetup c:\src\mysource seem to do different things under XP (Cmake 2.6.1). The first version loads the last source/build directories, while the second version does the right thing: loads mysource as the source and . as the build. Is this a bug or

Re: [CMake] cmakesetup launch discrepancy

2008-09-24 Thread Bill Hoffman
Aleksander Demko wrote: The commands: cmakesetup \src\mysource and cmakesetup c:\src\mysource seem to do different things under XP (Cmake 2.6.1). The first version loads the last source/build directories, while the second version does the right thing: loads mysource as the source and . as

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-24 Thread Gotthard, Petr
Philip, I have updated the FindRTI.cmake based on your comments. Many thanks. One explanation: I have to manipulate CMAKE_FIND_LIBRARY_PREFIXES because under Windows some RTI libraries have the lib prefix, while others don't. (By default there is no lib prefix under Windows.) I thought it may

Re: [CMake] cmakesetup launch discrepancy

2008-09-24 Thread Aleksander Demko
On Wed, Sep 24, 2008 at 11:28 AM, Bill Hoffman [EMAIL PROTECTED] wrote: Aleksander Demko wrote: The commands: cmakesetup \src\mysource and cmakesetup c:\src\mysource seem to do different things under XP (Cmake 2.6.1). The first version loads the last source/build directories, while the

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-24 Thread Christian Ehrlicher
Gotthard, Petr schrieb: Philip, I have updated the FindRTI.cmake based on your comments. Many thanks. One explanation: I have to manipulate CMAKE_FIND_LIBRARY_PREFIXES because under Windows some RTI libraries have the lib prefix, while others don't. (By default there is no lib prefix under

Re: [CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-24 Thread Phil Smith
Well, I now know why the first question got no responses: it made no sense to those who understand things. Turns out there was another CMakeLists.txt in the tree that was busted -- someone else checked in a bad copy. And not even realizing that there was more than one such file, I never

Re: [CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-24 Thread Alan W. Irwin
On 2008-09-24 11:47-0700 Phil Smith wrote: Well, I now know why the first question got no responses: it made no sense to those who understand things. Turns out there was another CMakeLists.txt in the tree that was busted -- someone else checked in a bad copy. And not even realizing that

[CMake] How to substitute zero in a variable

2008-09-24 Thread Eric (Brad) Lemings
Consider the following: CMakeLists.txt: set (ZERO 0) configure_file ( ${CMAKE_SOURCE_DIR}/include/config.h.cmake ${CMAKE_BINARY_DIR}/include/config.h ) ${CMAKE_SOURCE_DIR}/include/config.h.cmake: #cmakedefine ZERO @ZERO@ When I run cmake, I get the

Re: [CMake] the switch to subversion?

2008-09-24 Thread Maik Beckmann
Am Mittwoch, 24. September 2008 schrieb Jesper Eskilson: Don't be so sure. There are quite a few people wanting and working on a native Git port for Windows. OTOH, the Cygwin-port of Git works very nice. ( Fortunately for me, windows is something that happens to other people :p ) Hm,

[CMake] SOLVED! Re: Problem with a macro

2008-09-24 Thread Leopold Palomo Avellaneda
Sorry for the noise, the proglem was in another place. This macro is based in some of kde and works. Regards, Leo A Dimecres 24 Setembre 2008, Leopold Palomo Avellaneda va escriure: Hi, I'm trying to develop a macro to create gmo files (binarys from .po) for a project that uses gettext.

[CMake] Specifying the 'make' you want with a ctest script

2008-09-24 Thread Wheeler, Frederick W (GE, Research)
CMake List: Here is a snippet of a ctest script I'm using. ... CTEST_EMPTY_BINARY_DIRECTORY( ${CTEST_BINARY_DIRECTORY} ) FILE( WRITE ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt ${CTEST_INITIAL_CACHE} ) CTEST_CONFIGURE( BUILD ${CTEST_BINARY_DIRECTORY} RETURN_VALUE res )

[CMake] Specifying (partially) load order of DLLs

2008-09-24 Thread Wheeler, Frederick W (GE, Research)
CMake List: On one of our projects we have a very strange problem with 2 third-party DLLs (no source) and the order in which they are loaded at runtime. The executable needs A.dll and B.dll, which do not depend on each other - they are completely independent. If A.dll is loaded first, all is

Re: [CMake] Specifying (partially) load order of DLLs

2008-09-24 Thread Brad King
Wheeler, Frederick W (GE, Research) wrote: To make sure A.dll is loaded before B.dll we use the following line in CMake ... TARGET_LINK_LIBRARIES( A B ) I'm surprised that works. Consider the case when there really is a dependency. That says that A depends on B, so that B should be loaded

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-24 Thread Philip Lowman
On Wed, Sep 24, 2008 at 12:46 PM, Gotthard, Petr [EMAIL PROTECTED] wrote: Philip, I have updated the FindRTI.cmake based on your comments. Many thanks. Petr, Thanks for making the changes. One explanation: I have to manipulate CMAKE_FIND_LIBRARY_PREFIXES because under Windows some