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 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