forked from desktop-app/lib_lottie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (47 loc) · 1.32 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
# 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/lottie_animation.cpp
lottie/lottie_animation.h
lottie/lottie_common.cpp
lottie/lottie_common.h
lottie/lottie_frame_renderer.cpp
lottie/lottie_frame_renderer.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
)
if (DESKTOP_APP_LOTTIE_USE_CACHE)
nice_target_sources(lib_lottie ${src_loc}
PRIVATE
lottie/lottie_cache.cpp
lottie/lottie_cache.h
)
target_compile_definitions(lib_lottie PUBLIC LOTTIE_USE_CACHE)
target_link_libraries(lib_lottie
PUBLIC
desktop-app::lib_ffmpeg
desktop-app::external_lz4
)
endif()
target_include_directories(lib_lottie
PUBLIC
${src_loc}
)
target_link_libraries(lib_lottie
PUBLIC
desktop-app::lib_ui
PRIVATE
desktop-app::external_rlottie
desktop-app::external_zlib
)