Skip to content

Commit

Permalink
Added basic support for cross-compilation to MinGW [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 4, 2024
1 parent f01db3d commit 29b6637
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/cross-mingw.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1 change: 1 addition & 0 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_library(yaml_cpp OBJECT ${YAML_CPP_SRCS})
add_library(imgui_impl_raylib OBJECT ${IMGUI_IMPL_RAYLIB_SRCS})

target_compile_definitions(raylib PRIVATE PLATFORM_DESKTOP)
target_compile_definitions(yaml_cpp PRIVATE YAML_CPP_STATIC_DEFINE)

target_include_directories(imguizmo SYSTEM PUBLIC imgui)
target_include_directories(imgui_impl_raylib SYSTEM PUBLIC imgui)
Expand Down

0 comments on commit 29b6637

Please sign in to comment.