<< yocto-project: building an complete linux distribution (for urho3d) | Home | Check what local application is blocking your tcp/ip port >>

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:

Home