mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 17:27:55 +08:00
408990caef
* [minifb] Add new port * Fix arm build error * Add fix-arm-build-error.patch file * Update fix-arm-build-error.patch file
41 lines
917 B
Diff
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)
|