mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 03:06:37 +02:00
add mingw-w64 support
This commit is contained in:
6
external/CMakeLists.txt
vendored
6
external/CMakeLists.txt
vendored
@ -26,7 +26,11 @@ add_subdirectory("physfs")
|
||||
|
||||
if(NOT MM_HEADLESS)
|
||||
if(NOT EMSCRIPTEN)
|
||||
find_package(SDL2 REQUIRED)
|
||||
if(VCPKG_TARGET_TRIPLET)
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
else() # HACK: fix sdl find module
|
||||
find_package(SDL2 REQUIRED)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT MM_OPENGL_3_GLES)
|
||||
|
4
external/imgui/CMakeLists.txt
vendored
4
external/imgui/CMakeLists.txt
vendored
@ -58,7 +58,9 @@ if(EMSCRIPTEN)
|
||||
set_target_properties(imgui PROPERTIES LINK_FLAGS "-s USE_SDL=2 -s USE_WEBGL2=1 -s FULL_ES2=1 -s FULL_ES3=1")
|
||||
elseif(ANDROID)
|
||||
target_link_libraries(imgui SDL)
|
||||
else() # if not android or emscripten
|
||||
elseif(VCPKG_TARGET_TRIPLET)
|
||||
target_link_libraries(imgui SDL2::SDL2 SDL2::SDL2main SDL2::SDL2-static)
|
||||
else()
|
||||
target_include_directories(imgui PUBLIC "${SDL2_INCLUDE_DIR}")
|
||||
target_link_libraries(imgui ${SDL2_LIBRARY})
|
||||
endif()
|
||||
|
9
external/soloud/CMakeLists.txt
vendored
9
external/soloud/CMakeLists.txt
vendored
@ -163,9 +163,12 @@ target_include_directories(soloud SYSTEM PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/sol
|
||||
#target_include_directories(soloud PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/imgui")
|
||||
|
||||
#if not android or emscripten
|
||||
target_include_directories(soloud PUBLIC "${SDL2_INCLUDE_DIR}")
|
||||
target_link_libraries(soloud ${SDL2_LIBRARY})
|
||||
#endif
|
||||
if(VCPKG_TARGET_TRIPLET)
|
||||
target_link_libraries(soloud SDL2::SDL2 SDL2::SDL2main SDL2::SDL2-static)
|
||||
else()
|
||||
target_include_directories(soloud PUBLIC "${SDL2_INCLUDE_DIR}")
|
||||
target_link_libraries(soloud ${SDL2_LIBRARY})
|
||||
endif()
|
||||
|
||||
#if android
|
||||
#target_link_libraries(soloud SDL)
|
||||
|
7
external/tracy/CMakeLists.txt
vendored
7
external/tracy/CMakeLists.txt
vendored
@ -19,10 +19,11 @@ endif()
|
||||
|
||||
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_LIST_DIR}")
|
||||
|
||||
#target_link_libraries(tracy_client
|
||||
#)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(tracy_client dl)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(tracy_client ws2_32 dbghelp)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user