feat(client): migrate gui functions and implement OsGuiGetWindow

This commit is contained in:
fallenoak 2023-03-20 00:06:50 -05:00 committed by GitHub
parent acaa42019a
commit ba790418e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 120 additions and 33 deletions

View file

@ -1,4 +1,28 @@
file(GLOB PRIVATE_SOURCES "*.cpp")
file(GLOB PRIVATE_SOURCES
"*.cpp"
"gui/*.cpp"
)
if(WHOA_SYSTEM_WIN)
file(GLOB WIN_SOURCES
"gui/win/*.cpp"
)
list(APPEND PRIVATE_SOURCES ${WIN_SOURCES})
endif()
if(WHOA_SYSTEM_MAC)
file(GLOB MAC_SOURCES
"gui/mac/*.cpp"
)
list(APPEND PRIVATE_SOURCES ${MAC_SOURCES})
endif()
if(WHOA_SYSTEM_LINUX)
file(GLOB LINUX_SOURCES
"gui/linux/*.cpp"
)
list(APPEND PRIVATE_SOURCES ${LINUX_SOURCES})
endif()
add_library(client STATIC
${PRIVATE_SOURCES}