move SDL2 cmake specifics
This commit is contained in:
@@ -3,4 +3,11 @@ if (UNIX)
|
||||
add_subdirectory(src/lib/SDL)
|
||||
else()
|
||||
find_package(SDL2)
|
||||
endif()
|
||||
|
||||
set(SDL_TARGETS SDL2::SDL2)
|
||||
|
||||
if(WIN32 OR MINGW)
|
||||
list(PREPEND SDL_TARGETS SDL2::SDL2main ws2_32)
|
||||
add_definitions(-DSDL_MAIN_HANDLED)
|
||||
endif()
|
||||
Reference in New Issue
Block a user