-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
71 lines (65 loc) · 1.96 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
cmake_minimum_required(VERSION 3.24)
project(htcw_gfx VERSION 2.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_STATIC_LIBRARY_PREFIX "")
set(CMAKE_SHARED_LIBRARY_PREFIX "")
include(FetchContent)
FetchContent_Declare(htcw_bits
GIT_REPOSITORY https://github.com/codewitch-honey-crisis/htcw_bits.git
GIT_TAG 1.0.16
GIT_SHALLOW ON
FIND_PACKAGE_ARGS 1.0.16
)
FetchContent_Declare(htcw_data
GIT_REPOSITORY https://github.com/codewitch-honey-crisis/htcw_data.git
GIT_TAG 1.4.3
GIT_SHALLOW ON
FIND_PACKAGE_ARGS 1.4.3
)
FetchContent_MakeAvailable(htcw_data)
FetchContent_Declare(htcw_ml
GIT_REPOSITORY https://github.com/codewitch-honey-crisis/htcw_ml.git
GIT_TAG 0.2.4
GIT_SHALLOW ON
FIND_PACKAGE_ARGS 0.2.4
)
FetchContent_MakeAvailable(htcw_ml)
add_library(htcw_gfx
src/source/gfx_bitmap.cpp
src/source/gfx_canvas.cpp
src/source/gfx_canvas_path.cpp
src/source/gfx_draw_common.cpp
src/source/gfx_encoding.cpp
src/source/gfx_font.cpp
src/source/gfx_image.cpp
src/source/gfx_jpg_image.cpp
src/source/gfx_math.cpp
src/source/gfx_palette.cpp
src/source/gfx_pixel.cpp
src/source/gfx_png_image.cpp
src/source/gfx_svg.cpp
src/source/gfx_tvg.cpp
src/source/gfx_tt_font.cpp
src/source/gfx_vector_core.cpp
src/source/gfx_vlw_font.cpp
src/source/gfx_win_font.cpp
src/source/plutovg-blend.cpp
src/source/plutovg-canvas.cpp
src/source/plutovg-matrix.cpp
src/source/plutovg-paint.cpp
src/source/plutovg-path.cpp
src/source/plutovg-rasterize.cpp
src/source/plutovg-font.cpp
src/source/plutovg-ft-math.cpp
src/source/plutovg-ft-raster.cpp
src/source/plutovg-ft-stroker.cpp
src/source/miniz.c
src/source/pngle.c
src/source/tjpgd.c
)
target_link_libraries(htcw_gfx htcw_bits htcw_io htcw_data htcw_ml)
target_include_directories(htcw_gfx PUBLIC
"${PROJECT_SOURCE_DIR}"
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_BINARY_DIR}")