mirror of
https://github.com/aap/librw.git
synced 2025-12-19 00:49:50 +00:00
cmake: don't require SDL2main
This commit is contained in:
@@ -7,6 +7,10 @@ target_link_libraries(dumprwtree
|
||||
librw::librw
|
||||
)
|
||||
|
||||
if(LIBRW_GL3_GFXLIB STREQUAL "SDL2")
|
||||
target_compile_definitions(dumprwtree PRIVATE SDL_MAIN_HANDLED)
|
||||
endif()
|
||||
|
||||
if(LIBRW_INSTALL)
|
||||
install(TARGETS dumprwtree
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
|
||||
@@ -7,10 +7,14 @@ target_link_libraries(ska2anm
|
||||
librw::librw
|
||||
)
|
||||
|
||||
librw_platform_target(ska2anm INSTALL)
|
||||
if(LIBRW_GL3_GFXLIB STREQUAL "SDL2")
|
||||
target_compile_definitions(ska2anm PRIVATE SDL_MAIN_HANDLED)
|
||||
endif()
|
||||
|
||||
if(LIBRW_INSTALL)
|
||||
install(TARGETS ska2anm
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
librw_platform_target(ska2anm INSTALL)
|
||||
|
||||
Reference in New Issue
Block a user