file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/old/dir) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/old/dir/file "") file(CREATE_LINK dir ${CMAKE_CURRENT_BINARY_DIR}/old/lnk SYMBOLIC) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/old/dir DESTINATION dest) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/old/lnk DESTINATION dest) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/new/lnk) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/new/lnk/file "") file(CREATE_LINK lnk ${CMAKE_CURRENT_BINARY_DIR}/new/dir SYMBOLIC) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/new/lnk DESTINATION dest) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/new/dir DESTINATION dest)