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

Kentzo kulakov.ilya at gmail.com
Sat Apr 14 14:39:15 EDT 2012


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 this message in context: http://cmake.3232098.n2.nabble.com/Copying-Files-into-build-dir-under-Visual-Studio-vs-Codeblocks-Win32-vs-Codeblocks-Linux-tp7271857p7466283.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list