mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
fix(gx): if WHOA_BUILD_GLSDL, link SDL2 to event module
This commit is contained in:
parent
ddcdff5e51
commit
eef37c109d
@ -1,6 +1,6 @@
|
|||||||
file(GLOB PRIVATE_SOURCES "*.cpp")
|
file(GLOB PRIVATE_SOURCES "*.cpp")
|
||||||
|
|
||||||
if(WHOA_SYSTEM_WIN)
|
if (WHOA_SYSTEM_WIN)
|
||||||
file(GLOB WIN_SOURCES
|
file(GLOB WIN_SOURCES
|
||||||
"win/*.cpp"
|
"win/*.cpp"
|
||||||
)
|
)
|
||||||
@ -15,7 +15,7 @@ if(WHOA_SYSTEM_MAC)
|
|||||||
list(APPEND PRIVATE_SOURCES ${MAC_SOURCES})
|
list(APPEND PRIVATE_SOURCES ${MAC_SOURCES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WHOA_SYSTEM_LINUX)
|
if (WHOA_SYSTEM_LINUX)
|
||||||
file(GLOB LINUX_SOURCES
|
file(GLOB LINUX_SOURCES
|
||||||
"linux/*.cpp"
|
"linux/*.cpp"
|
||||||
)
|
)
|
||||||
@ -23,7 +23,7 @@ if(WHOA_SYSTEM_LINUX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# SDL has its own input event processing
|
# SDL has its own input event processing
|
||||||
if(WHOA_BUILD_GLSDL)
|
if (WHOA_BUILD_GLSDL)
|
||||||
file(GLOB SDL_SOURCES "sdl/*.cpp")
|
file(GLOB SDL_SOURCES "sdl/*.cpp")
|
||||||
list(APPEND PRIVATE_SOURCES ${SDL_SOURCES})
|
list(APPEND PRIVATE_SOURCES ${SDL_SOURCES})
|
||||||
endif()
|
endif()
|
||||||
@ -46,3 +46,9 @@ target_link_libraries(event
|
|||||||
storm
|
storm
|
||||||
tempest
|
tempest
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (WHOA_BUILD_GLSDL)
|
||||||
|
target_link_libraries(event
|
||||||
|
PRIVATE
|
||||||
|
SDL2::SDL2-static)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user