mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-04-28 12:27:59 +03:00
Fixed folder structure on windows
This commit is contained in:
parent
e603bf3e7f
commit
8fa4237893
1 changed files with 15 additions and 0 deletions
|
@ -174,6 +174,21 @@ list(FILTER ALL_FILES EXCLUDE REGEX "src/sys/sys_timer.c")
|
|||
list(FILTER ALL_FILES EXCLUDE REGEX "src/sys/sys_fault.c")
|
||||
list(FILTER ALL_FILES EXCLUDE REGEX "src/mods/object_ram.c")
|
||||
|
||||
if (MSVC)
|
||||
macro(GroupSources curdir)
|
||||
file(GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/${curdir} ${PROJECT_SOURCE_DIR}/${curdir}/*)
|
||||
foreach(child ${children})
|
||||
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/${curdir}/${child})
|
||||
GroupSources(${curdir}/${child})
|
||||
else()
|
||||
string(REPLACE "/" "\\" groupname ${curdir})
|
||||
source_group(${groupname} FILES ${PROJECT_SOURCE_DIR}/${curdir}/${child})
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
GroupSources(src)
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
set(IOS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libultraship/ios)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue