mirror of https://github.com/PCSX2/pcsx2.git
CMake: Set qm files as non-source data in Xcode
Prevents their contents from coming up in searches
This commit is contained in:
parent
fa2f578900
commit
6b62945632
|
@ -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$")
|
||||||
|
|
|
@ -249,4 +249,5 @@ if(WIN32)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
fixup_file_properties(pcsx2-qt)
|
||||||
setup_main_executable(pcsx2-qt)
|
setup_main_executable(pcsx2-qt)
|
||||||
|
|
Loading…
Reference in New Issue