+ target_link_libraries(graphicator simgrid m pthread )
+else()
+ target_link_libraries(graphicator simgrid )
+endif()
+
+## Clean generated files
+get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
+set_directory_properties(
+ PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
+ "${extra_clean_files};${CMAKE_CURRENT_BINARY_DIR}/simgrid.trace;")