-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
71 lines (64 loc) · 2.14 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
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(lib_lottie OBJECT)
add_library(desktop-app::lib_lottie ALIAS lib_lottie)
init_target(lib_lottie)
get_filename_component(src_loc . REALPATH)
nice_target_sources(lib_lottie ${src_loc}
PRIVATE
lottie/details/lottie_frame_provider.h
lottie/details/lottie_frame_provider_direct.cpp
lottie/details/lottie_frame_provider_direct.h
lottie/details/lottie_frame_provider_shared.cpp
lottie/details/lottie_frame_provider_shared.h
lottie/details/lottie_frame_renderer.cpp
lottie/details/lottie_frame_renderer.h
lottie/lottie_animation.cpp
lottie/lottie_animation.h
lottie/lottie_common.cpp
lottie/lottie_common.h
lottie/lottie_frame_generator.cpp
lottie/lottie_frame_generator.h
lottie/lottie_multi_player.cpp
lottie/lottie_multi_player.h
lottie/lottie_player.h
lottie/lottie_single_player.cpp
lottie/lottie_single_player.h
lottie/lottie_icon.cpp
lottie/lottie_icon.h
)
if (DESKTOP_APP_LOTTIE_USE_CACHE)
nice_target_sources(lib_lottie ${src_loc}
PRIVATE
lottie/details/lottie_cache.cpp
lottie/details/lottie_cache.h
lottie/details/lottie_cache_frame_storage.cpp
lottie/details/lottie_cache_frame_storage.h
lottie/details/lottie_frame_provider_cached.cpp
lottie/details/lottie_frame_provider_cached.h
lottie/details/lottie_frame_provider_cached_multi.cpp
lottie/details/lottie_frame_provider_cached_multi.h
)
target_compile_definitions(lib_lottie PRIVATE LOTTIE_USE_CACHE)
target_link_libraries(lib_lottie
PRIVATE
desktop-app::lib_ffmpeg
desktop-app::external_lz4
)
endif()
if (DESKTOP_APP_USE_PACKAGED_RLOTTIE)
target_compile_definitions(lib_lottie PRIVATE LOTTIE_USE_PACKAGED_RLOTTIE)
endif()
target_include_directories(lib_lottie
PUBLIC
${src_loc}
)
target_link_libraries(lib_lottie
PUBLIC
desktop-app::lib_ui
PRIVATE
desktop-app::external_rlottie
)