mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
Fixup the mingw readme cmakelists
(cherry picked from commit 7746a9656e
)
This commit is contained in:

committed by
Sam Lantinga

parent
21e6c5814c
commit
84dff407d4
@@ -16,19 +16,19 @@ pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x
|
|||||||
|
|
||||||
## Create the file CMakeLists.txt
|
## Create the file CMakeLists.txt
|
||||||
```cmake
|
```cmake
|
||||||
project(sdl_test C CXX)
|
|
||||||
cmake_minimum_required(VERSION 3.26)
|
cmake_minimum_required(VERSION 3.26)
|
||||||
|
project(hello C CXX)
|
||||||
|
|
||||||
find_package(SDL3 REQUIRED)
|
find_package(SDL3 REQUIRED)
|
||||||
|
|
||||||
add_executable(sdl_test)
|
add_executable(hello)
|
||||||
|
|
||||||
target_sources(sdl_test
|
target_sources(hello
|
||||||
PRIVATE
|
PRIVATE
|
||||||
hello.c
|
hello.c
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(sdl_test SDL3::SDL3)
|
target_link_libraries(hello SDL3::SDL3)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configure and Build:
|
## Configure and Build:
|
||||||
|
Reference in New Issue
Block a user