Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-04-14 Thread Kentzo
Here is the solution I ended up: foreach (_file ${DATA_TO_COPY}) add_custom_command ( TARGET your_target POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/path_to_data/${_file} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${_file} ) endforeach() -- View th

Re: [CMake] Copying Files into build-dir under Visual Studio vs.Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread aaron . meadows
t; > Hope that helps! > > > Aaron Meadows > > > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Eric Noulard > Sent: Friday, February 10, 2012 2:42 AM > To: Stefan Fendt > Cc: cmake@cmake.org >

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread Michael Jackson
--- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > Eric Noulard > Sent: Friday, February 10, 2012 2:42 AM > To: Stefan Fendt > Cc: cmake@cmake.org > Subject: Re: [CMake] Copying Files into build-dir under Visual Studio vs. > Codeblocks/Win32 vs.

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread Michael Hertling
On 02/10/2012 09:41 AM, Eric Noulard wrote: > 2012/2/10 Stefan Fendt : >> Hi, >> >> I'm (still) quite unsure if this isn't an FAQ (or if not maybe should be >> one), but I have read through everything I could google-up regarding >> this topic and found nothing usable... >> >> I'm writing an x-platf

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread aaron . meadows
ubject: Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux 2012/2/10 Stefan Fendt : > Hi, > > I'm (still) quite unsure if this isn't an FAQ (or if not maybe should > be one), but I have read through everything I could googl

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread Eric Noulard
2012/2/10 Stefan Fendt : > Hi, > > I'm (still) quite unsure if this isn't an FAQ (or if not maybe should be > one), but I have read through everything I could google-up regarding > this topic and found nothing usable... > > I'm writing an x-platform-project which will be compiled using different >

[CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-09 Thread Stefan Fendt
Hi, I'm (still) quite unsure if this isn't an FAQ (or if not maybe should be one), but I have read through everything I could google-up regarding this topic and found nothing usable... I'm writing an x-platform-project which will be compiled using different compilers and or under different system

Re: [CMake] Copying files (different name)

2011-05-27 Thread David Cole
Using configure_file with the COPYONLY flag is a reasonable technique: http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:configure_file On Thu, May 26, 2011 at 8:38 PM, Tyler wrote: > Don't know if file() will work but configure_file() will. You might > want the NO_REPLACE flag or w

Re: [CMake] Copying files (different name)

2011-05-26 Thread Tyler
Don't know if file() will work but configure_file() will. You might want the NO_REPLACE flag or whatever it's called to prevent accidental variable interpolation. tyler On Thu, May 26, 2011 at 4:46 PM, Nicholas Yue wrote: > Hi, > >    With the FILE ( COPY .. DESTINATION) command, is there a way

[CMake] Copying files (different name)

2011-05-26 Thread Nicholas Yue
Hi, With the FILE ( COPY .. DESTINATION) command, is there a way to create a second copy of a file at the DESTINATION with a different name ? In my case, my DESTINATION is the same as the original location. Basically, I am trying to duplicate this command line copy header.h.vc he

Re: [CMake] Copying files to runtime directory

2009-09-23 Thread Jeroen Dierckx
On Wed, Sep 23, 2009 at 10:29 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I just include some CMake code to copy the Qt Dlls from the Qt installation > directory into the local Debug or Release directories. Kinda clunky but gets > the job done. > We do it in the same way actually,

Re: [CMake] Copying files to runtime directory

2009-09-23 Thread Michael Jackson
I just include some CMake code to copy the Qt Dlls from the Qt installation directory into the local Debug or Release directories. Kinda clunky but gets the job done. -- Mike Jackson On Sep 23, 2009, at 3:09 PM, Jeroen Dierckx wrote: On Wed, Sep 23, 2009 at 9:06 PM, Anatoly Shirokov wr

Re: [CMake] Copying files to runtime directory

2009-09-23 Thread Jeroen Dierckx
On Wed, Sep 23, 2009 at 9:06 PM, Anatoly Shirokov wrote: > We use the RUNTIME_OUTPUT_DIRECTORY property to specify runtime location > for each target: > > set_target_properties(bla-bla-bla >PROPERTIES >RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}*/Execute/*${CMAKE_BUILD_TYPE}) > > ) > I h

Re: [CMake] Copying files to runtime directory

2009-09-23 Thread Anatoly Shirokov
We use the RUNTIME_OUTPUT_DIRECTORY property to specify runtime location for each target: set_target_properties(bla-bla-bla PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Execute/${CMAKE_BUILD_TYPE}) ) I hope it helps. Jeroen Dierckx: Hi, In Windows, we need to copy a bunch of

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Clinton Stimpson
On Monday 21 September 2009 03:27:43 pm Tyler Roscoe wrote: > On Mon, Sep 21, 2009 at 12:37:06PM -0600, Clinton Stimpson wrote: > > I don't know about your setup, but for our apps, our developers just set > > the PATH environment variable for their dlls not built as part of the > > project. > > Thi

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Tyler Roscoe
On Mon, Sep 21, 2009 at 12:37:06PM -0600, Clinton Stimpson wrote: > I don't know about your setup, but for our apps, our developers just set the > PATH environment variable for their dlls not built as part of the project. This works well for developers but often works less well for testers, or fo

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Clinton Stimpson
On Monday 21 September 2009 09:48:38 am Jeroen Dierckx wrote: > On Mon, Sep 21, 2009 at 5:29 PM, Tyler Roscoe wrote: > > On Mon, Sep 21, 2009 at 02:54:04PM +0200, Jeroen Dierckx wrote: > >> In Windows, we need to copy a bunch of files (dlls and other runtime > >> dependencies) to the runtime direc

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Tyler Roscoe
On Mon, Sep 21, 2009 at 05:48:38PM +0200, Jeroen Dierckx wrote: > We do use the install commands, but for preparing the build for > packaging. That way, we can use cpack later on to release our SDK or > applications. The problem is that I have to build the install target > every time I want to debu

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Jeroen Dierckx
On Mon, Sep 21, 2009 at 5:29 PM, Tyler Roscoe wrote: > On Mon, Sep 21, 2009 at 02:54:04PM +0200, Jeroen Dierckx wrote: >> In Windows, we need to copy a bunch of files (dlls and other runtime >> dependencies) to the runtime directory, mostly belonging to external >> dependencies. Those files are di

Re: [CMake] Copying files to runtime directory

2009-09-21 Thread Tyler Roscoe
On Mon, Sep 21, 2009 at 02:54:04PM +0200, Jeroen Dierckx wrote: > In Windows, we need to copy a bunch of files (dlls and other runtime > dependencies) to the runtime directory, mostly belonging to external > dependencies. Those files are different for debug and release builds. > So I created a func

[CMake] Copying files to runtime directory

2009-09-21 Thread Jeroen Dierckx
Hi, In Windows, we need to copy a bunch of files (dlls and other runtime dependencies) to the runtime directory, mostly belonging to external dependencies. Those files are different for debug and release builds. So I created a function to do just that. I came across several problems or limitations

Re: [CMake] Copying files

2009-07-22 Thread Mike Jackson
I'll save you some time. Here is the version of Expat that I use. It is tested on OS X, Linux and Windows (VS and MinGW). Then if you go to

Re: [CMake] Copying files

2009-07-22 Thread Tyler Roscoe
On Wed, Jul 22, 2009 at 05:13:54PM -0700, ML wrote: > I have: > > PROJECT(expat) > CMAKE_MINIMUM_REQUIRED (VERSION 2.6 FATAL_ERROR) > SET(SRCS xmlparse.c > xmlrole.c > xmltok.c > #xmltok_impl.c > ) > > ADD_LIBRARY(expat ${SRCS}) > > COMMAND ${CMAKE_COMMA

[CMake] Copying files

2009-07-22 Thread ML
Hi All, I want to copy the resulting static library I am building to a location but I can't see how to do it. I have: PROJECT(expat) CMAKE_MINIMUM_REQUIRED (VERSION 2.6 FATAL_ERROR) SET(SRCS xmlparse.c xmlrole.c xmltok.c #xmltok_impl.c ) ADD_L

Re: [CMake] copying files

2009-04-08 Thread Ian Monroe
On Wed, Apr 8, 2009 at 5:01 PM, Randy Heiland wrote: > Is there a simple cmake procedure to copy files from a source dir to the > installation dir? INSTALL works fine for this as well. Just read its API doc. Ian ___ Powered by www.kitware.com Visit ot

[CMake] copying files

2009-04-08 Thread Randy Heiland
Is there a simple cmake procedure to copy files from a source dir to the installation dir? thanks, Randy ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messag

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
EMAIL PROTECTED] Sent: Tue 12/12/2006 1:11 PM To: Mike Jackson Cc: Christian Ehrlicher; cmake@cmake.org Subject:Re: [CMake] Copying Files on Windows All of the dll files in your listing begin with "Qt" -- all of the .a files begin with "libQt" -- if you want to co

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Bill Hoffman
Mike Jackson wrote: but I still get the same error. Error copying file "C:/Developer/SDKs/qt-4.2.2/lib/libQtCore4.dll" to "C:/Workspace/a Actually, from your previous directory listing the file is called: QtCore4.dll and not libQtCore4.dll, note the missing lib... -Bill

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Bill Hoffman
but I still get the same error. Error copying file "C:/Developer/SDKs/qt-4.2.2/lib/libQtCore4.dll" to "C:/Workspace/a2bin/Build/Bin/" I have verified that the initial file is where the path says it is.. You might want to try running cmake -E copy by hand from the command prompt to see if

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Alan W. Irwin
Mike, the bottom line is cmake -E copy should just work on any platform, and you may have found a bug in it for some MinGW variation and/or cmake back-end generator. So as not to get distracted by all the special details of your project, I suggest you give a really simple example which anybody wi

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Christian Ehrlicher
Mike Jackson schrieb: > OK.. I guess I am just new to this whole software development thing and > computer thing.. those 8 years are just NOT paying off.. > > I built Qt.. All of Qt.. Every Single Bit of Qt. this INCLUDES the libQt*.dll > files. The files are there. I built them. I installed th

Re: [CMake] Copying Files on Windows

2006-12-12 Thread David Cole
2006 1:53 PM731 QtXmld.prl -a---11/27/2006 6:11 PM 76 README I hope that helps clear up what I have on my system. Mike -Original Message- From: Christian Ehrlicher [mailto:[EMAIL PROTECTED] Sent: Tue 12/12/2006 12:55 PM To: cmake@cmake.org Cc: Mike J

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
Sent: Tue 12/12/2006 12:55 PM To: cmake@cmake.org Cc: Mike Jackson Subject:Re: [CMake] Copying Files on Windows Mike Jackson schrieb: > Wow.. couldn't see the forest for the trees on that one.. So I changed the > Cmake code a bit.. > #-- If we are on Mi

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Christian Ehrlicher
Mike Jackson schrieb: > Wow.. couldn't see the forest for the trees on that one.. So I changed the > Cmake code a bit.. > #-- If we are on MinGW then copy the required libraries > IF (MINGW) > #=== Copy in the Qt Libs=== > SET (QTLIBS > libQtCore4.dll >

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
-Original Message- From: [EMAIL PROTECTED] on behalf of David Cole Sent: Tue 12/12/2006 12:36 PM To: Christian Ehrlicher Cc: cmake@cmake.org Subject:Re: [CMake] Copying Files on Windows Are they really named ".dylib"...? They shouldn't be under a mingw bui

Re: [CMake] Copying Files on Windows

2006-12-12 Thread David Cole
Are they really named ".dylib"...? They shouldn't be under a mingw build... .dylib is a Mac specific file name extension, isn't it? On 12/12/06, Christian Ehrlicher <[EMAIL PROTECTED]> wrote: Mike Jackson schrieb: > There is if I BUILT them. And yes they are in the location specified. > > I nee

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Christian Ehrlicher
Mike Jackson schrieb: > There is if I BUILT them. And yes they are in the location specified. > > I need to copy the libraries so I can have an operational Qt/MinGW based > Application. The systems that I am deploying to are very tightly locked down > windows XP systems. The users only have writ

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
ctory so I can just pack up the binary directory and be down with it. Mike -Original Message- From: Christian Ehrlicher [mailto:[EMAIL PROTECTED] Sent: Tue 12/12/2006 12:10 PM To: cmake@cmake.org Cc: Mike Jackson Subject: Re: [CMake] Copying Files on Windows Did y

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Christian Ehrlicher
Mike Jackson schrieb: > I have been trying to copy some files using CMake and not having much luck. > Note that basically the same code works fine on OS X and Linux.. > > #-- If we are on MinGW then copy the required libraries > IF (MINGW) > #=== Copy in the Qt Libs=== > SET (QTLIBS

RE: [CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
06 11:56 AM To: Mike Jackson; cmake@cmake.org Cc: Subject:Re: [CMake] Copying Files on Windows On 2006-12-12 11:46, Mike Jackson said: >So is there something I am missing? I get the following error when >mingw32-make is run: >Error copying file "C:/Develope

Re: [CMake] Copying Files on Windows

2006-12-12 Thread Sean McBride
On 2006-12-12 11:46, Mike Jackson said: >So is there something I am missing? I get the following error when >mingw32-make is run: >Error copying file "C:/Developer/SDKs/qt-4.2.2/lib/libQtCore.dylib" to >"C:/Workspace/a2bin/Build/Bin". > >Could someone have pity on my and let me know what I am doin

[CMake] Copying Files on Windows

2006-12-12 Thread Mike Jackson
I have been trying to copy some files using CMake and not having much luck. Note that basically the same code works fine on OS X and Linux.. #-- If we are on MinGW then copy the required libraries IF (MINGW) #=== Copy in the Qt Libs=== SET (QTLIBS libQtCore.dyli