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
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
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
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
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
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
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
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
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
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. :)
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
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
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 )
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
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} )
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
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
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 (
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
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
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
21 matches
Mail list logo