-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
87 lines (80 loc) · 2.39 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# 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_crl OBJECT)
add_library(desktop-app::lib_crl ALIAS lib_crl)
init_target(lib_crl)
get_filename_component(src_loc . REALPATH)
nice_target_sources(lib_crl ${src_loc}
PRIVATE
crl/common/crl_common_config.h
crl/common/crl_common_fp_exceptions.cpp
crl/common/crl_common_guards.h
crl/common/crl_common_list.cpp
crl/common/crl_common_list.h
crl/common/crl_common_object_async.h
crl/common/crl_common_on_main.cpp
crl/common/crl_common_on_main.h
crl/common/crl_common_on_main_guarded.h
crl/common/crl_common_queue.cpp
crl/common/crl_common_queue.h
crl/common/crl_common_semaphore.h
crl/common/crl_common_sync.h
crl/common/crl_common_utils.h
crl/dispatch/crl_dispatch_async.cpp
crl/dispatch/crl_dispatch_async.h
crl/dispatch/crl_dispatch_on_main.h
crl/dispatch/crl_dispatch_queue.cpp
crl/dispatch/crl_dispatch_queue.h
crl/dispatch/crl_dispatch_semaphore.cpp
crl/dispatch/crl_dispatch_semaphore.h
crl/mac/crl_mac_time.cpp
crl/linux/crl_linux_time.cpp
crl/qt/crl_qt_async.h
crl/qt/crl_qt_guards.h
crl/winapi/crl_winapi_async.cpp
crl/winapi/crl_winapi_async.h
crl/winapi/crl_winapi_dll.h
crl/winapi/crl_winapi_fp_exceptions.cpp
crl/winapi/crl_winapi_list.cpp
crl/winapi/crl_winapi_list.h
crl/winapi/crl_winapi_semaphore.cpp
crl/winapi/crl_winapi_semaphore.h
crl/winapi/crl_winapi_time.cpp
crl/winapi/crl_winapi_windows_h.h
crl/crl.h
crl/crl_async.h
crl/crl_fp_exceptions.h
crl/crl_object_on_queue.h
crl/crl_object_on_thread.cpp
crl/crl_object_on_thread.h
crl/crl_on_main.h
crl/crl_queue.h
crl/crl_semaphore.h
crl/crl_time.cpp
crl/crl_time.h
)
target_include_directories(lib_crl
PUBLIC
${src_loc}
)
if (TARGET desktop-app::external_dispatch)
target_link_libraries(lib_crl
PUBLIC
desktop-app::external_dispatch
)
endif()
if (build_macstore OR TARGET desktop-app::external_dispatch)
target_compile_definitions(lib_crl
PUBLIC
CRL_FORCE_COMMON_QUEUE
)
endif()
if (TARGET desktop-app::external_qt)
target_link_libraries(lib_crl
PUBLIC
desktop-app::external_qt
)
endif()