-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
41 lines (36 loc) · 1.13 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
#
# This CMake script builds the gameplay.elf binary.
# You can build as many programs as you need (including scripts for maps) here.
# All programs are incrementally built.
#
# add_micro_binary(program.name 0xBaseAddress [source ... files]):
#
# 1. The first argument is the program name
# 2. The second argument is the programs base address, which we can use to put
# special programs on different addresses so that we can use memory sharing
# between programs in a 1:1 manner, using simple programming.
# All level scripts can have the same base address, while helper programs
# that we call into can have other base addresses.
# 3. The remaining arguments are source files.
add_shared_program(gameplay.elf 0x50000000
*[Gg]ameplay*
"src/gameplay.cpp"
"src/gameplay_remote.cpp"
"src/events.cpp"
)
add_level(gui.elf 0x400000
"src/gui.cpp"
)
attach_program(gui.elf gameplay.elf)
add_level(level1.elf 0x400000
"src/level1.cpp"
"src/level1_local.cpp"
"src/level1_remote.cpp"
"src/level1_threads.cpp"
"src/events.cpp"
)
attach_program(level1.elf gameplay.elf)
add_level(level2.elf 0x400000
"src/level2.cpp"
)
attach_program(level2.elf gameplay.elf)