# Seed a new installation without replacing settings saved by the user. if(NOT DEFINED SOURCE OR NOT DEFINED DESTINATION) message(FATAL_ERROR "SOURCE and DESTINATION must be specified") endif() if(NOT EXISTS "${DESTINATION}") get_filename_component(settings_directory "${DESTINATION}" DIRECTORY) file(MAKE_DIRECTORY "${settings_directory}") configure_file("${SOURCE}" "${DESTINATION}" COPYONLY) endif()