diff options
| author | Aaditya Dhruv <[email protected]> | 2026-01-30 17:16:40 -0600 |
|---|---|---|
| committer | Aaditya Dhruv <[email protected]> | 2026-01-30 17:16:40 -0600 |
| commit | 4992ce0098cac8caef6c9315816b688d96259bce (patch) | |
| tree | 862c389ec104838cbd11fc623747287b298558d0 /CMakeLists.txt | |
| parent | 0889db09c33aa96a31cc821effbf6dd42aa14471 (diff) | |
Add freetype for font rendering, display fps in stderr
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 126750d..1c953cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,8 @@ set(CMAKE_BUILD_TYPE Debug) message("Compiler: ${CMAKE_CXX_COMPILER_ID}") add_subdirectory(src) -target_include_directories(junkcraft PRIVATE include) find_package(SDL2) +find_package(Freetype REQUIRED) find_library(JUNK junk) -target_link_libraries(junkcraft PRIVATE SDL2 ${JUNK} m pthread) +target_include_directories(junkcraft PRIVATE include Freetype_INCLUDE_DIRS /usr/include/freetype2) +target_link_libraries(junkcraft PRIVATE SDL2 ${JUNK} m pthread freetype) |
