-
Notifications
You must be signed in to change notification settings - Fork 68
/
importCairo.cmake
36 lines (35 loc) · 1.28 KB
/
importCairo.cmake
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
if (BUILD_BUNDLE)
# Cairo does not support building on CMake
if (WIN)
If(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ARM64")
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.16.0")
add_third_party_dependency("libpng-1.6.37")
else()
# X86 and X86_64
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.17.4")
add_third_party_dependency("libpng-1.6.37")
endif()
elseif(OSX)
If(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64")
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.17.4")
add_third_party_dependency("libpng-1.6.37")
else()
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.17.4")
add_third_party_dependency("libpng-1.6.37")
endif()
else() #Linux
If(${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l" OR (${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64"))
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.16.0")
add_third_party_dependency("libpng-1.6.37")
else()
add_third_party_dependency("pixman-0.40.0")
add_third_party_dependency("cairo-1.17.4")
add_third_party_dependency("libpng-1.6.37")
endif()
endif()
endif()