Re: [CMake] Unable to find GTK with cmake on Ubuntu

2009-01-11 Thread Pierrick Grasland
Thanks a lot. But, like I said before, I found a workaround, and now, Philip's FindGtk2 work perfectly. On Mon, Jan 12, 2009 at 3:56 AM, Kermit Mei wrote: > Hi, how about this CMakeLists.txt? I use it to test my GTK+ programs, > and it always work well;p > > > cmake_minimum_required(VERSION 2

Re: [CMake] CMake, Visual studio 2005 and long relative path

2009-01-11 Thread Andrew Maclean
In the documentation (see the link below) it says: "For example, the maximum path on drive D is "D:\" where "" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)" Rea

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2009-01-11 Thread Kermit Mei
Hi, how about this CMakeLists.txt? I use it to test my GTK+ programs, and it always work well;p cmake_minimum_required(VERSION 2.6) INCLUDE(UsePkgConfig) FIND_PACKAGE(GTK) IF (GTK_FOUND) INCLUDE_DIRECTORIES(${GTK_INCLUDE_DIR}) ADD_DEFINITIONS(-DHAVE_GTK) MESSAGE("GTK 1.x found and

Re: [CMake] [New Module] FindGTK2.cmake call for testing

2009-01-11 Thread Michael Jackson
On Jan 11, 2009, at 7:13 PM, Philip Lowman wrote: On Sat, Jan 10, 2009 at 7:48 AM, Alexander Neundorf > wrote: On Thursday 08 January 2009, Philip Lowman wrote: > If you use GTK2 in any of your projects and have time, please test this > CMake module and post any issues to this thread. I had

Re: [CMake] [New Module] FindGTK2.cmake call for testing

2009-01-11 Thread Philip Lowman
On Sat, Jan 10, 2009 at 7:48 AM, Alexander Neundorf wrote: > On Thursday 08 January 2009, Philip Lowman wrote: > > If you use GTK2 in any of your projects and have time, please test this > > CMake module and post any issues to this thread. > > I had a quick look at it. > I think in the FIND_PATH(

Re: [CMake] Installing shared libs with symlinks

2009-01-11 Thread Philip Lowman
On Fri, Dec 12, 2008 at 9:34 AM, Martin Apel wrote: > Philip Lowman wrote: > > On Wed, Dec 10, 2008 at 4:04 AM, Martin Apel > > wrote: > > > > Hi there, > > > > I am trying to install the boost libraries my software needs into the > > target installatio

Re: [CMake] Problem with FindBoost

2009-01-11 Thread Michael Jackson
Couple of comments: Where _exactly_ do you have Boost installed. FindBoost looks for in very specific locations for a very specific set of folders. Also, is multi_array an actual compiled library in boost? I can't remember. If is NOT a compiled library then you don't need to list it as a

Re: [CMake] Problem with FindBoost

2009-01-11 Thread Christopher Harvey
Wilfried Holzke wrote: Hi, I try to find "Boost" within a CMakeList.txt file. I got the following from the documentation of CMake 2.6: * SET(Boost_USE_STATIC_LIBS OFF) SET(Boost_USE_MULTITHREAD OFF) FIND_PACKAGE(Boost 1.34.1 COMPONENTS multi_array) if (NOT Boost_FOUND) message(FATAL_ER

Re: [CMake] Strip a prefix from a string

2009-01-11 Thread David . Karr
I'm afraid this accidentally went through once already while I was in the midst of editing it; this time it's for real. > Suppose I have a string called "foobar". I want to be able to strip a > specific prefix from that string and have the suffix returned to me. > So if I wanted to strip "foo", I

Re: [CMake] install a demo program only if requestet

2009-01-11 Thread Philip Lowman
On Sun, Jan 11, 2009 at 10:00 AM, Wilfried Holzke wrote: > Hi, > > > cmake -DWITH_DEMO=ON srcdir > > > > in CMakeLists.txt: > > > > if(WITH_DEMO) > >install( demo ) > > endif(WITH_DEMO) > > If nothing else depends on the demo code I could do > > if(WITH_DEMO) > add_subdirectory(example)

Re: [CMake] Linking object files into executable target

2009-01-11 Thread Alexander Neundorf
On Wednesday 10 December 2008, Alexander Neundorf wrote: > On Wednesday 10 December 2008, Colin D Bennett wrote: > > On Tue, 9 Dec 2008 22:26:11 -0800 > > > > Colin D Bennett wrote: > > > The problem is that CMake is *silently* ignoring the request to link > > > the object file into the executable

Re: [CMake] Problem with FindBoost

2009-01-11 Thread Andreas Pakulat
On 11.01.09 16:06:39, Wilfried Holzke wrote: > Hi, > > I try to find "Boost" within a CMakeList.txt file. > > I got the following from the documentation of CMake 2.6: > > * > SET(Boost_USE_STATIC_LIBS OFF) > SET(Boost_USE_MULTITHREAD OFF) > FIND_PACKAGE(Boost 1.34.1 COMPONENTS multi_array) >

[CMake] Problem with FindBoost

2009-01-11 Thread Wilfried Holzke
Hi, I try to find "Boost" within a CMakeList.txt file. I got the following from the documentation of CMake 2.6: * SET(Boost_USE_STATIC_LIBS OFF) SET(Boost_USE_MULTITHREAD OFF) FIND_PACKAGE(Boost 1.34.1 COMPONENTS multi_array) if (NOT Boost_FOUND) message(FATAL_ERROR "Boost not found!") E

Re: [CMake] install a demo program only if requestet

2009-01-11 Thread Wilfried Holzke
Hi, > cmake -DWITH_DEMO=ON srcdir > > in CMakeLists.txt: > > if(WITH_DEMO) >install( demo ) > endif(WITH_DEMO) If nothing else depends on the demo code I could do if(WITH_DEMO) add_subdirectory(example) endif(WITH_DEMO) to avoid building the whole source, right? regards W. Holzk

Re: [CMake] CMake, Visual studio 2005 and long relative path

2009-01-11 Thread Andreas Pakulat
On 10.01.09 16:20:43, Armin Berres wrote: > On Thu, 08 Jan 09 14:56, Julien Michel wrote: > > Dear CMake users and developpers, > > > > My project is using cmake and I am trying to build it on Visual Studio > > 2005. The configuration process is successful, but when trying to > > compile, I hav