blob: 526925022d83a933c7dcb7bb9c13c649f7a92283 (
plain)
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
|
# Automatically generate most of our external dependencies ...
GET_TARGET_PROPERTY(XTRKCAD_LOCATION xtrkcad LOCATION)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake" @ONLY)
INSTALL(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake")
# Handle some external dependencies that can't be detected automatically ...
SET(MACPORTS_DIR "/opt/local" CACHE PATH "Root directory containing installed MacPort packages")
MARK_AS_ADVANCED(MACPORTS_DIR)
INSTALL(DIRECTORY
${MACPORTS_DIR}/lib/gtk-2.0
DESTINATION lib
USE_SOURCE_PERMISSIONS
)
INSTALL(DIRECTORY
${MACPORTS_DIR}/etc/gtk-2.0
DESTINATION etc
USE_SOURCE_PERMISSIONS
)
INSTALL(DIRECTORY
${MACPORTS_DIR}/lib/pango
DESTINATION lib
USE_SOURCE_PERMISSIONS
)
INSTALL(DIRECTORY
${MACPORTS_DIR}/lib/gdk-pixbuf-2.0
DESTINATION lib
USE_SOURCE_PERMISSIONS
)
INSTALL(FILES
${MACPORTS_DIR}/etc/pango/pangorc
${MACPORTS_DIR}/etc/pango/pango.modules
DESTINATION etc/pango
)
INSTALL(FILES
${MACPORTS_DIR}/etc/fonts/fonts.conf
${MACPORTS_DIR}/etc/fonts/fonts.dtd
DESTINATION etc/fonts
)
INSTALL(FILES
${CMAKE_CURRENT_SOURCE_DIR}/yosemite-fix/libxml2.2.dylib
${CMAKE_CURRENT_SOURCE_DIR}/yosemite-fix/libz.1.dylib
${CMAKE_CURRENT_SOURCE_DIR}/yosemite-fix/libiconv.2.dylib
DESTINATION lib
)
# Generate bundles ...
ADD_SUBDIRECTORY(bundle)
|