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
2012/2/10 Stefan Fendt ste...@sfendt.de:
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
: [CMake] Copying Files into build-dir under Visual Studio vs.
Codeblocks/Win32 vs. Codeblocks/Linux
2012/2/10 Stefan Fendt ste...@sfendt.de:
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
On 02/10/2012 09:41 AM, Eric Noulard wrote:
2012/2/10 Stefan Fendt ste...@sfendt.de:
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
] Copying Files into build-dir under Visual Studio vs.
Codeblocks/Win32 vs. Codeblocks/Linux
2012/2/10 Stefan Fendt ste...@sfendt.de:
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
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