cmake: Mark .inl files with the right type in Xcode

This commit is contained in:
TellowKrinkle 2021-08-05 00:01:38 -05:00 committed by tellowkrinkle
parent f3dbf24864
commit 0d4549a66e
1 changed files with 8 additions and 0 deletions

View File

@ -1342,6 +1342,14 @@ if (APPLE)
-P ${CMAKE_SOURCE_DIR}/cmake/Pcsx2PostprocessBundle.cmake
)
add_dependencies(pcsx2-postprocess-bundle ${Output})
# Set the right file types for .inl files in Xcode
get_target_property(PCSX2_SOURCES PCSX2 SOURCES)
foreach(source IN LISTS PCSX2_SOURCES)
if("${source}" MATCHES "\\.(inl|h)$")
set_source_files_properties("${source}" PROPERTIES XCODE_EXPLICIT_FILE_TYPE sourcecode.cpp.h)
endif()
endforeach()
endif()
if(NOT DISABLE_SETCAP)