Skip to content

Commit c790377

Browse files
committed
one more thing, lets have keys as header only include file in target sources to be nicely displayed in IDE
1 parent 6a28aa1 commit c790377

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/common.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,12 @@ struct DeviceConfigCaps
13491349
TARGET ${IMPL_TARGET}
13501350
)
13511351

1352+
target_sources(${IMPL_TARGET} PUBLIC ${INCLUDE_FILE})
1353+
set_source_files_properties(${INCLUDE_FILE} PROPERTIES
1354+
HEADER_FILE_ONLY ON
1355+
VS_TOOL_OVERRIDE None
1356+
)
1357+
13521358
target_compile_definitions(${IMPL_TARGET} INTERFACE $<TARGET_PROPERTY:${IMPL_TARGET},NBL_MOUNT_POINT_DEFINES>)
13531359
target_include_directories(${IMPL_TARGET} INTERFACE ${INCLUDE_DIR})
13541360
set_target_properties(${IMPL_TARGET} PROPERTIES NBL_HEADER_GENERATED_RULE ON)

0 commit comments

Comments
 (0)