build: IWYU support added

This commit is contained in:
Mateusz Pusz committed 2021-03-30 13:15:47 +02:00
1 parent 5251a8a241
commit 01935996e6
8 files changed
+194 -15

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ cmake_minimum_required(VERSION 3.15)
function(add_units_module name)
add_library(mp-units-${name} INTERFACE)
target_link_libraries(mp-units-${name} INTERFACE ${ARGN})
target_include_directories(mp-units-${name} INTERFACE
target_include_directories(mp-units-${name} ${units_as_system} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)