FTXUI/cmake/iwyu.cmake

8 lines
202 B
CMake
Raw Normal View History

find_program(iwyu_path NAMES include-what-you-use iwyu)
if(iwyu_path)
set_property(TARGET ${lib}
PROPERTY ${iwyu_path} -Xiwyu
2022-08-07 18:15:52 +08:00
--mapping_file ${CMAKE_CURRENT_SOURCE_DIR}/iwyu.imp
)
endif()