Re: [CMake] Does CMake cannot handle directory name with space?

2009-03-19 Thread Dancefire
Hi, Philip, I tested your script FindGTK2.cmake on my computer, I got some problems, but I fixed them. The problem is that I install gtkmm only for current user, so the path can not be found at [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path], so I add some lines for [HKEY_CURRENT_USER\\SOFTWARE\\g

[CMake] Building java files from cmake

2009-03-19 Thread ankit jain
Hi all, I have a folder "mainfolder" with sufolder "innerfolder" which has soem java files. i want to create it class files. for that iam using add_sutom_command to run the javac command but still my class files are not generated. The content of cmakelist of mainfolder is: project(mainfolder) cma

Re: [CMake] Boost system library

2009-03-19 Thread Philip Lowman
On Sun, Mar 15, 2009 at 12:03 PM, Bart Janssens wrote: > On Fri, Mar 13, 2009 at 1:13 PM, Geir Erikstad wrote: > > 09/3/13 Philip Lowman : > >> I've logged a bug report for it here. I'm pretty sure the best fix > would be > >> to get FindBoost to ignore the system component when it's detected a

Re: [CMake] How best to capture the current Date/Time

2009-03-19 Thread Philip Lowman
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I am trying to find a nice portable solution for generating version strings > based on the date (seems reasonable). I even have my own c++ code that can > generate the proper string for me. The problem that I

Re: [CMake] Does CMake cannot handle directory name with space?

2009-03-19 Thread Philip Lowman
On Thu, Mar 19, 2009 at 8:24 PM, Dancefire wrote: > I'm using the latest stable version, 2.6.3, which is downloaded from > http://www.cmake.org/cmake/resources/software.html Yes, the problem is most likely in FindPkgConfig.cmake:136. This module looks like it takes the output from pkg-config -

[CMake] How best to capture the current Date/Time

2009-03-19 Thread Michael Jackson
I am trying to find a nice portable solution for generating version strings based on the date (seems reasonable). I even have my own c++ code that can generate the proper string for me. The problem that I can not seem to get my head around is that I need to compile and run the program at cm

[CMake] set_property on sources causing extra files to be rebuilt

2009-03-19 Thread Daniel Nelson
I am using set_property to add extra compile flags to source files that are built using a precompiled header, but whenever a source file is added or removed it causes every file in the executable to be rebuilt. I have come up with a CMakeList that shows the issue. # cmake_minimum_required(

Re: [CMake] need criticism: my very first CMake project

2009-03-19 Thread Alexander Neundorf
On Thursday 19 March 2009, Artem Zolochevskiy wrote: > hi all > > I need constructive criticism for my very first CMake based project. > > It converts index.txt file into html by usung asciidoc. > make install should install converted document into adjustable @docdir@ :-) > > http://tinyurl.com/d8f

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
oh I see. I thought the problem was that you didn't want to physically type out all that information. Michael Jackson wrote: Not sure you want to go down this path but the CMake files in the SVN repository of Boost has some facilities to figuring out dependencies through a chain like you have.

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Michael Jackson
Not sure you want to go down this path but the CMake files in the SVN repository of Boost has some facilities to figuring out dependencies through a chain like you have. Basically what the boost authors have created are some macros that allow you to add a library/executable and declare only

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Alexandre Feblot
Hum, I don't see what you mean. In the cmake spirit, my executable don't even know they will depend on lib4. exe1 just knows it depends on lib1. Then lib1 just knows it depends on lib3. Then, lib3 just knows it depends on lib4, i.e. lib4-A to build exe1-A and lib4-B to build exe1-B. (and in the

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
If you want to compile two execs, one for each static library you can use a two element list and go "for_each" over each library and create two execs. Otherwise you can just hardcode it into cmake. Alexandre Feblot wrote: Hi, in fact, in my current system, the implementation to use is prett

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Alexandre Feblot
Hi, in fact, in my current system, the implementation to use is pretty hardcoded in each executable makefile, in the link line. There is no automatic lib dependency management. Alexandre -Message d'origine- De : cmake-boun...@cmake.org De la part de Christopher Harvey Envoyé : jeud

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Christopher Harvey
Hi, Interesting question. You said that "only one of them has to be used in every executable, the implementation to use is determined by the executable." These are static libraries, so how can the exec pick one if it isn't even built? (As opposed to loading one dynamically) Basically I'm still w

[CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Alexandre Feblot
Hi, I'm facing an issue while trying to port my current build system to cmake and don't know is there is a way to solve it: In our project, we build a bunch of static libs (about 360) and several executables on them. * one library, in the middle of the lib dependency chain, has in fact 2 diff

[CMake] Fwd: controlling which instantiations to make for given templates

2009-03-19 Thread Eric Noulard
Re-transfer, I did dropped the list -- Forwarded message -- From: Eric Noulard Date: 2009/3/19 Subject: Re: [CMake] controlling which instantiations to make for given templates To: Hicham Mouline 2009/3/19 Hicham Mouline : > Hello, > we have a number of projects, in some of th

[CMake] need criticism: my very first CMake project

2009-03-19 Thread Artem Zolochevskiy
hi all I need constructive criticism for my very first CMake based project. It converts index.txt file into html by usung asciidoc. make install should install converted document into adjustable @docdir@ :-) http://tinyurl.com/d8fhv6 Thanks! -- Artem Zolochevskiy _

Re: [CMake] How to emulate autotools "make check"?

2009-03-19 Thread Eric Noulard
2009/3/19 Marcel Loose : > Hi Eric, > > I used "make test" first, but that failed the same way ctest fails. > However, ctest -V at least gave me some more (useful) output. You are right there is no "functional" difference, in one case you'll have make test --> ctest --> ctest and in the other ctes

Re: [CMake] How to emulate autotools "make check"?

2009-03-19 Thread Marcel Loose
Hi Eric, I used "make test" first, but that failed the same way ctest fails. However, ctest -V at least gave me some more (useful) output. There's a C++ source file t_hello.cc in the test directory that should be compiled to produce an executable t_hello. So yes, maybe I'm using the wrong argumen

[CMake] How can I manage Qt Style Sheets with CMake?

2009-03-19 Thread Kermit Mei
Hello all, how can I manage Qt style sheets with cmake? I can't see any look and feel customization in my program, which had set the style sheets in qt-designer. And also, I don't konw how can I make cmake recognize *.qss file in my project. Waiting for your help, thanks. Kermit ___

Re: [CMake] CMake shared libraries, install, and rpath

2009-03-19 Thread Brad King
Alexander Neundorf wrote: On Wednesday 18 March 2009, Bartlett, Roscoe A wrote: Hello, How can we get CMake to deal with installed shared libraries and set the rpath correctly in a portable way? The issue is that we have is that we need to enable client applications to link to installed Trilin

Re: [CMake] preventing redundant compilations

2009-03-19 Thread Michael Wild
On 19. Mar, 2009, at 1:09, Alexander Neundorf wrote: On Thursday 19 March 2009, Philip Lowman wrote: On Wed, Mar 18, 2009 at 7:05 PM, Alexander Neundorf wrote: On Wednesday 18 March 2009, Denis Scherbakov wrote: You could do the following: ADD_LIBRARY(intermediate STATIC a.cpp) ADD_LIBRAR

Re: [CMake] How to emulate autotools "make check"?

2009-03-19 Thread Eric Noulard
2009/3/19 Marcel Loose : > Hi all, > > I've been searching for a way to implement "make check" the GNU > Autotools way. That is: tests are not compiled and linked as part of the > "all" target, but as part of the "check" target. > > I followed section 10.5 "Using CTest to Drive Complex Tests" of th

[CMake] controlling which instantiations to make for given templates

2009-03-19 Thread Hicham Mouline
Hello, we have a number of projects, in some of them, we have translation units that define member functions of template classes, and at the bottom we have explicit template instantiations of those templates: template class Templ; template class Templ; it turns out under VS2005/2008 we only need

Re: [CMake] Does CMake cannot handle directory name with space?

2009-03-19 Thread Philip Lowman
On Thu, Mar 19, 2009 at 4:08 AM, Werner Smekal wrote: > The second problem is that, for gtkmm, CMake found gtkmm, it is good, >> however, it breaks the path, "E:\Program Files\gtkmm" to "E:\Program", and >> treat "Files\gtkmm" as the second arguments. So, in generated MSVC project >> file, the in

[CMake] Cmake support to Java files

2009-03-19 Thread ankit jain
Hi all, I have some java files. i want to build those so that ther equivalent class files will be generated. Aprt from that i want to install .jar and .xsd files. i dont know how cmake deal with java as i read that cmake does not fully support java. can anybody tell me how to do it by giving one

Re: [CMake] How to emulate autotools "make check"?

2009-03-19 Thread Mike Jackson
What is it that you are trying to do _exactly_? Are you trying to check for a symbol or function or something like that? Are you trying to run a unit test that tests your code? Or are you trying to do something else? -- Mike Jackson www.bluequart

[CMake] How to emulate autotools "make check"?

2009-03-19 Thread Marcel Loose
Hi all, I've been searching for a way to implement "make check" the GNU Autotools way. That is: tests are not compiled and linked as part of the "all" target, but as part of the "check" target. I followed section 10.5 "Using CTest to Drive Complex Tests" of the book "Mastering CMake" and I looked

Re: [CMake] How to copy files to the directory of executable file.

2009-03-19 Thread Jonatan Bijl
I've got the following commands. They work quite well. The last parameter is the target for which the copying is needed. The copy_directory has a guard against copying CVS metadata. MACRO(COPY_FILE_IF_CHANGED in_file out_file target) IF(${in_file} IS_NEWER_THAN ${out_file}) #messag

Re: [CMake] Does CMake cannot handle directory name with space?

2009-03-19 Thread Werner Smekal
Hi, There are 2 problems I got. The first one is that CMake cannot find Boost library, which I just unzipped it to the above directory, since I only need some headers, no linking required. How find_package(boost) works? How can I make it find the boost library automatically, without manua

[CMake] Does CMake cannot handle directory name with space?

2009-03-19 Thread Dancefire
Hi, I'm working on a gtkmm program. I got success using CMake under Linux. However, I got problems when I try to use it under Windows. My gtkmm installation directory is "E:\Program Files\gtkmm", I also use boost, which I unzipped it under "E:\Program Files\boost_1_38_0". I put following lines i

Re: [CMake] How to copy files to the directory of executable file.

2009-03-19 Thread Werner Smekal
Hi, On 19.03.2009, at 02:28, Dancefire wrote: Hi, I'm working on a simple gtkmm program. I use CMake for the makefile generator. I use GtkBuilder to create the window form, so I need a non-executable file, "window.xml", locate at the same directory of executable file which just build.