annotate libadventure/CMakeLists.txt @ 197:852d0b7817ce

rpg: map, extreme cleanup, closes #2508 @4h
author David Demelier <markand@malikania.fr>
date Mon, 09 Nov 2020 10:37:36 +0100
parents 629f55f3961e
children 4c24604efcab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
116
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 # CMakeLists.txt -- CMake build system for libadventure
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 #
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 # Copyright (c) 2020 David Demelier <markand@malikania.fr>
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 #
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 # copyright notice and this permission notice appear in all copies.
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 #
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 #
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 project(libadventure)
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
20
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 set(
162
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
22 STATE_SOURCES
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
23 ${libadventure_SOURCE_DIR}/adventure/state/mainmenu.c
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
24 ${libadventure_SOURCE_DIR}/adventure/state/mainmenu.h
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
25 ${libadventure_SOURCE_DIR}/adventure/state/panic.c
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
26 ${libadventure_SOURCE_DIR}/adventure/state/panic.h
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
27 ${libadventure_SOURCE_DIR}/adventure/state/splashscreen.c
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
28 ${libadventure_SOURCE_DIR}/adventure/state/splashscreen.h
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
29 )
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
30
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
31 set(
116
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 SOURCES
197
852d0b7817ce rpg: map, extreme cleanup, closes #2508 @4h
David Demelier <markand@malikania.fr>
parents: 162
diff changeset
33 ${libadventure_SOURCE_DIR}/adventure/molko.c
852d0b7817ce rpg: map, extreme cleanup, closes #2508 @4h
David Demelier <markand@malikania.fr>
parents: 162
diff changeset
34 ${libadventure_SOURCE_DIR}/adventure/molko.h
141
4eeeccf2b732 core: add trace/vtrace functions, closes #2493
David Demelier <markand@malikania.fr>
parents: 134
diff changeset
35 ${libadventure_SOURCE_DIR}/adventure/trace_hud.c
4eeeccf2b732 core: add trace/vtrace functions, closes #2493
David Demelier <markand@malikania.fr>
parents: 134
diff changeset
36 ${libadventure_SOURCE_DIR}/adventure/trace_hud.h
116
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 )
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
131
c679e08b32b2 molko: fix startup
David Demelier <markand@malikania.fr>
parents: 121
diff changeset
39 set(
c679e08b32b2 molko: fix startup
David Demelier <markand@malikania.fr>
parents: 121
diff changeset
40 ASSETS
162
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
41 ${libadventure_SOURCE_DIR}/adventure/assets/fonts/cubic.ttf
133
c46f80820b42 core: revamp debug using theme
David Demelier <markand@malikania.fr>
parents: 131
diff changeset
42 ${libadventure_SOURCE_DIR}/adventure/assets/fonts/lato.ttf
c46f80820b42 core: revamp debug using theme
David Demelier <markand@malikania.fr>
parents: 131
diff changeset
43 ${libadventure_SOURCE_DIR}/adventure/assets/fonts/teutonic.ttf
c46f80820b42 core: revamp debug using theme
David Demelier <markand@malikania.fr>
parents: 131
diff changeset
44 ${libadventure_SOURCE_DIR}/adventure/assets/fonts/pirata-one.ttf
134
197374e9f0b2 cmake: prefix assets with their directory
David Demelier <markand@malikania.fr>
parents: 133
diff changeset
45 ${libadventure_SOURCE_DIR}/adventure/assets/sprites/john.png
131
c679e08b32b2 molko: fix startup
David Demelier <markand@malikania.fr>
parents: 121
diff changeset
46 )
c679e08b32b2 molko: fix startup
David Demelier <markand@malikania.fr>
parents: 121
diff changeset
47
118
3411daa26432 cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents: 116
diff changeset
48 molko_define_library(
3411daa26432 cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents: 116
diff changeset
49 TARGET libadventure
162
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
50 SOURCES
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
51 ${STATE_SOURCES}
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
52 ${SOURCES}
131
c679e08b32b2 molko: fix startup
David Demelier <markand@malikania.fr>
parents: 121
diff changeset
53 ASSETS ${ASSETS}
148
c577c15df07f misc: split libraries, closes #2496
David Demelier <markand@malikania.fr>
parents: 141
diff changeset
54 LIBRARIES libcore libui librpg
197
852d0b7817ce rpg: map, extreme cleanup, closes #2508 @4h
David Demelier <markand@malikania.fr>
parents: 162
diff changeset
55 PRIVATE_INCLUDES
852d0b7817ce rpg: map, extreme cleanup, closes #2508 @4h
David Demelier <markand@malikania.fr>
parents: 162
diff changeset
56 ${libadventure_SOURCE_DIR}/adventure
118
3411daa26432 cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents: 116
diff changeset
57 PUBLIC_INCLUDES
116
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 $<BUILD_INTERFACE:${libadventure_SOURCE_DIR}>
197
852d0b7817ce rpg: map, extreme cleanup, closes #2508 @4h
David Demelier <markand@malikania.fr>
parents: 162
diff changeset
59 PRIVATE_FLAGS DIRECTORY="${libadventure_SOURCE_DIR}/adventure/assets"
116
0a6683615c73 cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff changeset
60 )
121
789b23e01f52 misc: reorganize hierarchy, closes #2490
David Demelier <markand@malikania.fr>
parents: 118
diff changeset
61
789b23e01f52 misc: reorganize hierarchy, closes #2490
David Demelier <markand@malikania.fr>
parents: 118
diff changeset
62 source_group(adventure FILES ${SOURCES})
162
629f55f3961e core: rework states
David Demelier <markand@malikania.fr>
parents: 148
diff changeset
63 source_group(adventure/state FILES ${STATE_SOURCES})