diff options
Diffstat (limited to 'fontbaker/CMakeLists.txt')
-rw-r--r-- | fontbaker/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/fontbaker/CMakeLists.txt b/fontbaker/CMakeLists.txt new file mode 100644 index 0000000..d33cfa4 --- /dev/null +++ b/fontbaker/CMakeLists.txt | |||
@@ -0,0 +1,24 @@ | |||
1 | cmake_minimum_required(VERSION 3.0) | ||
2 | |||
3 | project(fontbaker) | ||
4 | |||
5 | set(CMAKE_C_STANDARD 17) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
9 | set(FREETYPE_DIR contrib/freetype-2.13.2) | ||
10 | |||
11 | add_subdirectory(${FREETYPE_DIR}) | ||
12 | |||
13 | add_executable(fontbaker | ||
14 | fontbaker.c) | ||
15 | |||
16 | target_include_directories(fontbaker PRIVATE | ||
17 | ${FREETYPE_DIR}/include) | ||
18 | |||
19 | target_link_libraries(fontbaker PRIVATE | ||
20 | font | ||
21 | freetype | ||
22 | math) | ||
23 | |||
24 | target_compile_options(fontbaker PRIVATE -Wall -Wextra -Wpedantic) | ||