[CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
Hi, I would like to create a custom target that copy several files (one, two or n files, but at least one) to a directory. I know how to do it with one file: add_custom_target(my_copy_target ${CMAKE_COMMAND} -E copy ${_inputfile} ${dirOUT}/) but, I really don't know how to do it with a list

[CMake] howto include libs ?

2009-02-15 Thread Reinhard Thies
Hi, its my first projekt with cmake and I am getting crazy with the following: I am using libconfuse, which is installed under /usr/lib/ Here is my cmakefile: cmake_minimum_required(VERSION 2.6) PROJECT (DS309 C) ADD_EXECUTABLE(ds309 ds309.c ds309_3_parser.c ds309toccp.c serveritf.c

Re: [CMake] Add_custom_target copying files

2009-02-15 Thread Michael Jackson
Here is a code snippet from a project that I use that copies some files to the build directory. #-- Copy all the HDF5 files from the test directory into the build directory SET (HDF5_REFERENCE_TEST_FILES tnullspace.h5 family_v1.7_3.h5 family_v1.7_1.h5 mergemsg.h5 tbogus.h5

Re: [CMake] howto include libs ?

2009-02-15 Thread Michael Jackson
INCLUDE_DIRECTORIES( ccp ) TARGET_LINK_LIBRARIES(ds309 libconfuse) in the Target_link_libraries command you must give the name of the target to link the libraries into as the first argument. _ Mike Jackson

Re: [CMake] howto include libs ?

2009-02-15 Thread Reinhard Thies
Thanks, it helped, but now I get : Linking C executable ds309 /usr/bin/ld: cannot find -llibconfuse collect2: ld returned 1 exit status and the lib is defenetly there. I assume it is not cmake related but do you still have an idea ? Many Thanks Reinhard On Sunday, 15. February 2009 16:41:53

Re: [CMake] howto include libs ?

2009-02-15 Thread Eric Noulard
2009/2/15 Reinhard Thies reinhard.th...@web.de: Thanks, it helped, but now I get : Linking C executable ds309 /usr/bin/ld: cannot find -llibconfuse collect2: ld returned 1 exit status and the lib is defenetly there. I assume it is not cmake related but do you still have an idea ? I

Re: [CMake] howto include libs ?

2009-02-15 Thread Reinhard Thies
Thanks, it works beautifull now ;-) Reinhard On Sunday, 15. February 2009 19:29:17 Eric Noulard wrote: 2009/2/15 Reinhard Thies reinhard.th...@web.de: Thanks, it helped, but now I get : Linking C executable ds309 /usr/bin/ld: cannot find -llibconfuse collect2: ld returned 1 exit

Re: [CMake] howto include libs ?

2009-02-15 Thread Michael Jackson
Doh.. Sorry about that. Eric. Thanks for the pick up on that. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio

Re: [CMake] Choose Python version on OS X

2009-02-15 Thread Robert Haines
On 11 Feb 2009, at 17:57, Enrico Franchi wrote: On Feb 11, 2009, at 1:14 PM, Robert Haines wrote: I've had a quick look at FindPythonInterp and FindPythonLibs and they are inconsistent! If you add a line to print PYTHON_EXECUTABLE you will see that it finds /opt/local/bin/python2.6 but

[CMake] Visual Studio folders

2009-02-15 Thread Andrew J Roark
Hello, The following pertains to Visual Studio 2008 (FWIW) and a very recent (not sure exactly which) build of cmake. Firstly, I'm a big cmake fan. We had lots of discussions where I work on which tool to move to. We trialled scons and others and settled on cmake. Thanks for the great tool. :)

Re: [CMake] include_regular_expression question(Ubuntu CMake-2.6-patch0)

2009-02-15 Thread Pavel Shevaev
Sorry folks, I'm replying to myself - I think I've found a solution: mark directory containing infrequently changing paths using set_directory_properties, e.g: set_directory_properties(PROPERTIES INCLUDE_REGULAR_EXPRESSION ^$) -- Best regards, Pavel

Re: [CMake] Visual Studio folders

2009-02-15 Thread Michael Jackson
While I don't think you can group a set of targets into a folder in VS you _can_ add the headers into the folders of each target so that they show up in each VS project within the solution file. Two things are needed: 1) Add the headers to the target and 2) use the source_group command to

Re: [CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
A Diumenge 15 Febrer 2009, Michael Jackson va escriure: Here is a code snippet from a project that I use that copies some files to the build directory. Thanks, but my modified version doesn't work and I don't know what's happen macro (GETTEXT_UPDATE_LANG_PO dirOUTpo inputPo )

[CMake] Errors when building from project root

2009-02-15 Thread Wade Williams
I have a project that looks like: project_root/lib/util In util is the CMakeLists.txt file that contains all the necessary commands to build the util lib. In the lib dir is a CMakeLists.txt file that simply has add_subdirectory(util). In the project_root dir is a CMakeLists.txt file

Re: [CMake] Visual Studio folders

2009-02-15 Thread Armin Berres
On Sun, 15 Feb 09 15:15, Michael Jackson wrote: Two things are needed: 1) Add the headers to the target and 2) use the source_group command to group them together. This should work. set(LIB1_SRCS MyLibrary1.h MyLibrary1.cpp ) source_group(Library1 FILES ${LIB1_SRCS} )

Re: [CMake] Errors when building from project root

2009-02-15 Thread Philip Lowman
On Sun, Feb 15, 2009 at 4:05 PM, Wade Williams wadeswo...@mac.com wrote: I have a project that looks like: project_root/lib/util In util is the CMakeLists.txt file that contains all the necessary commands to build the util lib. In the lib dir is a CMakeLists.txt file that simply has

[CMake] open source project for CMake ports?

2009-02-15 Thread Philip Lowman
Hi, Luigi suggested a kind of CMake ports system in a recent thread here on the CMake mailing list. This would presumably be a system whereby popular 3rd party dependencies which have not yet CMakeified their source trees could be CM'd and baselined in one place and ultimately downloaded for

Re: [CMake] Cannot add library to the static library in Visual Studio 2008

2009-02-15 Thread Philip Lowman
On Sat, Feb 14, 2009 at 9:35 AM, Dupi nefr...@gmail.com wrote: Hi all. I have problem with adding ode library to the static library in Visual Studio 2008. My project name is oxygen and it is depend from ODE library version 0.9 (

Re: [CMake] open source project for CMake ports?

2009-02-15 Thread Bill Hoffman
Philip Lowman wrote: Hi, Luigi suggested a kind of CMake ports system in a recent thread here on the CMake mailing list. This would presumably be a system whereby popular 3rd party dependencies which have not yet CMakeified their source trees could be CM'd and baselined in one place and

[CMake] CMake-2.6.2 compilation error

2009-02-15 Thread Mani N C
Hi, I have downloaded cmake-2.6.2 and trying to compile it on maemo paltform (ARM) on scratchbox. ./bootstrap --prefix=/usr ran with out any errors. But when i gave make I got following the errors. [ 57%] Built target cmForm make -f Source/CMakeFiles/CMakeLib.dir/build.make

[CMake] How to build projects with make -j2 and ADD_SUBDIRECTORY?

2009-02-15 Thread Micha Renner
How to build projects with make -j2 and ADD_SUBDIRECTORY? A TOP-Level CMakeLists.txt has the following lines: ADD_SUBDIRECTORY(libtiff) # The Library ADD_SUBDIRECTORY(test)# Programm depending on libtiff # more subdiretories depending on libtiff The build-command is: make -j2 The