pineapple/externals/vcpkg/ports/minifb/fix-arm-build-error.patch
2022-07-23 03:01:36 +02:00

40 lines
917 B
Diff
Executable file

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06ba472..0f5874c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,27 @@ add_library(minifb STATIC
${SrcLib}
)
+if (WIN32)
+add_executable(noise
+ tests/noise.c
+)
+target_link_libraries(noise minifb Gdi32.lib)
+
+add_executable(input_events
+ tests/input_events.c
+)
+target_link_libraries(input_events minifb Gdi32.lib)
+
+add_executable(input_events_cpp
+ tests/input_events_cpp.cpp
+)
+target_link_libraries(input_events_cpp minifb Gdi32.lib)
+
+add_executable(multiple_windows
+ tests/multiple_windows.c
+)
+target_link_libraries(multiple_windows minifb Gdi32.lib)
+else()
add_executable(noise
tests/noise.c
)
@@ -73,6 +94,7 @@ add_executable(multiple_windows
tests/multiple_windows.c
)
target_link_libraries(multiple_windows minifb)
+endif()
if (MSVC)
elseif (MINGW)