cmake: install files/directories

If you want to put additional data to your exectuable when 'make install' is called:

install(FILES ${CMAKE_BINARY_DIR}/bin/CoreData.pak DESTINATION bin)

# also multiple files are alllowed:
install(FILES ${CMAKE_BINARY_DIR}/bin/CoreData.pak ${CMAKE_BINARY_DIR}/bin/Data.pak ${CMAKE_BINARY_DIR}/bin/EditorData.pak  DESTINATION bin)

# 
install(DIRECTORY src/ DESTINATION include/myproj
        FILES_MATCHING PATTERN "*.h")

More read: