CMake: Set qm files as non-source data in Xcode

Prevents their contents from coming up in searches
This commit is contained in:
TellowKrinkle 2023-09-09 02:58:27 -05:00 committed by Connor McLaughlin
parent fa2f578900
commit 6b62945632
2 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,9 @@ function(fixup_file_properties target)
if("${source}" MATCHES "\\.(inl|h)$") if("${source}" MATCHES "\\.(inl|h)$")
set_source_files_properties("${source}" PROPERTIES XCODE_EXPLICIT_FILE_TYPE sourcecode.cpp.h) set_source_files_properties("${source}" PROPERTIES XCODE_EXPLICIT_FILE_TYPE sourcecode.cpp.h)
endif() endif()
if("${source}" MATCHES "\\.(qm)$")
set_source_files_properties("${source}" PROPERTIES XCODE_EXPLICIT_FILE_TYPE compiled)
endif()
# CMake makefile and ninja generators will attempt to share one PCH for both cpp and mm files # CMake makefile and ninja generators will attempt to share one PCH for both cpp and mm files
# That's not actually OK # That's not actually OK
if("${source}" MATCHES "\\.mm$") if("${source}" MATCHES "\\.mm$")

View File

@ -249,4 +249,5 @@ if(WIN32)
) )
endif() endif()
fixup_file_properties(pcsx2-qt)
setup_main_executable(pcsx2-qt) setup_main_executable(pcsx2-qt)