-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (44 loc) · 1.05 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
cmake_minimum_required(VERSION 3.9)
project(build-tools LANGUAGES NONE)
#
# Paths.
#
set(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
#
# GYB
#
add_custom_command(
OUTPUT gyb.py
COMMAND wget
ARGS --quiet https://raw.githubusercontent.com/apple/swift/main/utils/gyb.py
WORKING_DIRECTORY ${WORKING_DIRECTORY}
)
add_custom_command(
OUTPUT gyb
COMMAND wget
ARGS --quiet https://raw.githubusercontent.com/apple/swift/main/utils/gyb
WORKING_DIRECTORY ${WORKING_DIRECTORY}
DEPENDS gyb.py
)
add_custom_target(gyb-tool ALL
DEPENDS gyb.py gyb
)
#
# Installation section
#
install(
PROGRAMS ${WORKING_DIRECTORY}/gyb ${WORKING_DIRECTORY}/gyb.py
DESTINATION build-tools/bin
)
install(
PROGRAMS source/xctest_tool.rb source/gyb_tool.rb source/xcworkspace_tool.rb
DESTINATION build-tools/bin
)
install(
FILES README.md LICENSE
DESTINATION build-tools
)
install(
DIRECTORY documentation/
DESTINATION build-tools/documentation
)