From 7d3c6f19f46c8cabafc6b414c475cf4b60d383bd Mon Sep 17 00:00:00 2001 From: KNProNooob <138398165+KristianNikolov07@users.noreply.github.com> Date: Mon, 28 Jul 2025 20:04:07 +0300 Subject: [PATCH 1/2] Make the cmake instructions more clear --- docs/INTRO-cmake.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/INTRO-cmake.md b/docs/INTRO-cmake.md index 556505f8..c08cb064 100644 --- a/docs/INTRO-cmake.md +++ b/docs/INTRO-cmake.md @@ -30,6 +30,8 @@ add_executable(hello WIN32 hello.c) # Link to the actual SDL3 library. target_link_libraries(hello PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3) ``` +Run [external/download.sh](../external/download.sh) or [external/Get-GitModules.ps1](../external/Get-GitModules.ps1) + Build: ```sh From 98c9506fcab0a7acb2f48177e4285087747eb37c Mon Sep 17 00:00:00 2001 From: Kristian Nikolov Date: Sun, 17 Aug 2025 00:23:55 +0300 Subject: [PATCH 2/2] Update INTRO-cmake.md --- docs/INTRO-cmake.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/INTRO-cmake.md b/docs/INTRO-cmake.md index c08cb064..8dd76c37 100644 --- a/docs/INTRO-cmake.md +++ b/docs/INTRO-cmake.md @@ -5,6 +5,12 @@ The easiest way to use SDL_ttf is to include it along with SDL as subprojects in We'll start by creating a simple project to build and run [hello.c](hello.c) +Clone the SDL_ttf repo using: +``` +git clone https://github.com/libsdl-org/SDL_ttf.git vendored/SDL_ttf --recurse-submodules +``` + + Create the file CMakeLists.txt ```cmake cmake_minimum_required(VERSION 3.16) @@ -30,7 +36,6 @@ add_executable(hello WIN32 hello.c) # Link to the actual SDL3 library. target_link_libraries(hello PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3) ``` -Run [external/download.sh](../external/download.sh) or [external/Get-GitModules.ps1](../external/Get-GitModules.ps1) Build: