aboutsummaryrefslogtreecommitdiff
path: root/ports/minifb/fix-arm-build-error.patch
blob: 66579d449547605bd1592dfdd63caadd8fa2d4b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)