Skip to content

Commit

Permalink
cmake: create folder hierarchy only for Xcode project
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Nov 11, 2023
1 parent 9268773 commit dfca904
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1818,5 +1818,7 @@ if(UNIX AND NOT APPLE AND NOT ANDROID AND NOT LIBRETRO)
endforeach()
endif()

file(GLOB_RECURSE SRC_FILES *.h *.cpp *.c *.cc *.mm)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SRC_FILES})
if(${CMAKE_GENERATOR} MATCHES "^Xcode.*")
file(GLOB_RECURSE SRC_FILES *.h *.cpp *.c *.cc *.mm)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SRC_FILES})
endif()

0 comments on commit dfca904

Please sign in to comment.