Re: [CMake] CPack: howto change directory layout depending on the generator

2008-09-21 Thread Timenkov Yuri
I've hurried a bit when I was writing previous message. On Sat, Sep 20, 2008 at 8:12 PM, Tanguy Krotoff [EMAIL PROTECTED] wrote: FIrst of all, there are a couple of discussions about using CPACK_SET_DESTDIR, install prefixes and co in this list which are about same problems: directory

[CMake] how to link with a system library ?

2008-09-21 Thread Steven Samuel Cole
I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES) add_executable (myexec sources) Result: CMake Error: Attempt to add link library GTK_LIBRARIES to target myexec which is not

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Steven Samuel Cole [EMAIL PROTECTED]: I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES) add_executable (myexec sources) Result: CMake Error: Attempt to add link

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Steven Samuel Cole
Eric Noulard schrieb: 2008/9/21 Steven Samuel Cole [EMAIL PROTECTED]: I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES) add_executable (myexec sources) Result: CMake Error:

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Christian Ehrlicher
Steven Samuel Cole schrieb: Eric Noulard schrieb: 2008/9/21 Steven Samuel Cole [EMAIL PROTECTED]: I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES) add_executable (myexec

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Mike Jackson
include(FindGTK) add_executable (myexec ${sources} ) target_link_libraries(myexec ${GTK_LIBRARIES} ) Note the order above. Also, cmake variables are ALWAYS used with braces ${Variable} NOT $Variable. Mike On Sep 21, 2008, at 5:23 AM, Steven Samuel Cole wrote: I would like to link a

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Steven Samuel Cole
Christian Ehrlicher schrieb: Steven Samuel Cole schrieb: Eric Noulard schrieb: 2008/9/21 Steven Samuel Cole [EMAIL PROTECTED]: I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES)

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Steven Samuel Cole
Mike Jackson schrieb: include(FindGTK) add_executable (myexec ${sources} ) target_link_libraries(myexec ${GTK_LIBRARIES} ) Note the order above. Also, cmake variables are ALWAYS used with braces ${Variable} NOT $Variable. Mike Thanks for that, Mike :-) The sample code corresponds to

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Mike Jackson
On Sep 21, 2008, at 9:28 AM, Steven Samuel Cole wrote: Mike Jackson schrieb: include(FindGTK) add_executable (myexec ${sources} ) target_link_libraries(myexec ${GTK_LIBRARIES} ) Note the order above. Also, cmake variables are ALWAYS used with braces ${Variable} NOT $Variable. Mike

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Steven Samuel Cole
Mike Jackson schrieb: On Sep 21, 2008, at 9:28 AM, Steven Samuel Cole wrote: Mike Jackson schrieb: include(FindGTK) add_executable (myexec ${sources} ) target_link_libraries(myexec ${GTK_LIBRARIES} ) Note the order above. Also, cmake variables are ALWAYS used with braces ${Variable} NOT

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Mike Jackson
On Sep 21, 2008, at 10:02 AM, Steven Samuel Cole wrote: Mike Jackson schrieb: On Sep 21, 2008, at 9:28 AM, Steven Samuel Cole wrote: Mike Jackson schrieb: include(FindGTK) add_executable (myexec ${sources} ) target_link_libraries(myexec ${GTK_LIBRARIES} ) Note the order above. Also, cmake

Re: [CMake] Updated WinCE CMakefiles

2008-09-21 Thread Andreas Pokorny
Hello, 2008/9/19 Clemens Arth [EMAIL PROTECTED]: [...] I completely agree with you about the issue of adding and removing individual files within a single solution, and I think the entire hack is not a good solution. I would also prefer using an individual cross compile configuration for

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Mike Jackson [EMAIL PROTECTED]: www.bluequartz.net CMake Error: GTK NOT FOUND -- Configuring done make: *** [cmake_check_build_system] Error 255 GTK 2.0 comes into my Kubuntu 8.0.4 system with a standard debian package. Nothing customized. All in standard paths. I don't know a

Re: [CMake] Customizing target locations with VS generator

2008-09-21 Thread Armin Berres
On Wed, 17 Sep 08 12:28, cyril_wobow wrote: This is great but I would really love to find a way to remove that $(OutDir) from the way, so that all my targets are put into the same directory, not depending on the build config. There is no possible filename clash since all my targets have

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Hendrik Sattler
Am Sunday 21 September 2008 17:20:19 schrieb Eric Noulard: There is bug report about this http://www.vtk.org/Bug/view.php?id=6042 pointing to this CMake module http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2/Fin dGTK2.cmake I haven't tested it though. Looks not too

Re: [CMake] Updated WinCE CMakefiles

2008-09-21 Thread Clemens Arth
Hi, Andreas Pokorny schrieb: Hello, 2008/9/19 Clemens Arth [EMAIL PROTECTED]: [...] I completely agree with you about the issue of adding and removing individual files within a single solution, and I think the entire hack is not a good solution. I would also prefer using an individual

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

2008-09-21 Thread Philip Lowman
On Sat, Sep 13, 2008 at 4:12 PM, Gotthard, Petr [EMAIL PROTECTED] wrote: Hello, would you accept a new module: FindRTI.cmake? RTI is a simulation infrastructure standartized by IEEE and SISO. It has a well defined C++ API, that assures that simulation applications are independent on RTI

Re: [CMake] unset() command

2008-09-21 Thread Philip Lowman
On Wed, Sep 3, 2008 at 2:00 PM, Alexander Neundorf [EMAIL PROTECTED]wrote: On Tuesday 26 August 2008, Philip Lowman wrote: On Mon, Aug 25, 2008 at 10:31 AM, Fernando Cacciola [EMAIL PROTECTED] wrote: And while you are it.. I currently use: set(var) to read the value back from the

Re: [CMake] Customizing target locations with VS generator

2008-09-21 Thread Bill Hoffman
Armin Berres wrote: On Wed, 17 Sep 08 12:28, cyril_wobow wrote: This is great but I would really love to find a way to remove that $(OutDir) from the way, so that all my targets are put into the same directory, not depending on the build config. There is no possible filename clash since

[CMake] Generated file and parallel build.

2008-09-21 Thread Óscar Fuentes
Several libraries depends on a generared header file. For enabling parallel builds I need to state that dependency, and I do it with set_source_files_properties. This happens inside a macro: macro(add_llvm_library name) if( LLVM_SOURCE_COMMON_DEPENDS ) set_source_files_properties( ${ARGN}