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:
@@ -38,6 +38,10 @@ target_link_libraries(librw_skeleton
|
||||
librw
|
||||
)
|
||||
|
||||
if (LIBRW_GL3_GFXLIB STREQUAL "SDL2")
|
||||
target_compile_definitions(librw_skeleton PRIVATE SDL_MAIN_HANDLED)
|
||||
endif()
|
||||
|
||||
target_include_directories(librw_skeleton
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
|
||||
Reference in New Issue
Block a user