get_filename_component(location ${file} PATH)
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
string(REPLACE "src/" "include/simgrid/" location "${location}") # For kernel headers
get_filename_component(location ${file} PATH)
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
string(REPLACE "src/" "include/simgrid/" location "${location}") # For kernel headers