move SDL2 cmake specifics
This commit is contained in:
@@ -3,4 +3,11 @@ if (UNIX)
|
|||||||
add_subdirectory(src/lib/SDL)
|
add_subdirectory(src/lib/SDL)
|
||||||
else()
|
else()
|
||||||
find_package(SDL2)
|
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()
|
endif()
|
||||||
@@ -43,13 +43,6 @@ set(
|
|||||||
app/emu/snes.cc
|
app/emu/snes.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SDL_TARGETS SDL2::SDL2)
|
|
||||||
|
|
||||||
if(WIN32 OR MINGW)
|
|
||||||
list(PREPEND SDL_TARGETS SDL2::SDL2main ws2_32)
|
|
||||||
add_definitions(-DSDL_MAIN_HANDLED)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (WIN32 OR MINGW OR UNIX AND NOT APPLE)
|
if (WIN32 OR MINGW OR UNIX AND NOT APPLE)
|
||||||
list(APPEND YAZE_APP_CORE_SRC
|
list(APPEND YAZE_APP_CORE_SRC
|
||||||
app/core/platform/font_loader.cc
|
app/core/platform/font_loader.cc
|
||||||
|
|||||||
Reference in New Issue
Block a user