vcpkg/ports/minifb/fix-arm-build-error.patch
NancyLi1013 408990caef [minifb] Add new port (#7766)
* [minifb] Add new port

* Fix arm build error

* Add fix-arm-build-error.patch file

* Update fix-arm-build-error.patch file
2019-08-27 15:53:18 -07:00

41 lines
917 B
Diff

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)