Mercurial > molko
comparison examples/CMakeLists.txt @ 125:d59efa737fcc
cmake: add examples and fix
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 06 Oct 2020 12:43:29 +0200 |
parents | |
children | 9301c7c84471 |
comparison
equal
deleted
inserted
replaced
124:7b84764741b6 | 125:d59efa737fcc |
---|---|
1 # | |
2 # CMakeLists.txt -- CMake build system for molko | |
3 # | |
4 # Copyright (c) 2020 David Demelier <markand@malikania.fr> | |
5 # | |
6 # Permission to use, copy, modify, and/or distribute this software for any | |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 | |
19 project(examples) | |
20 | |
21 molko_define_executable( | |
22 TARGET example-inventory | |
23 SOURCES example-inventory | |
24 ASSETS | |
25 ${examples_SOURCE_DIR}/assets/images/fish.png | |
26 ${examples_SOURCE_DIR}/assets/images/potion.png | |
27 ${examples_SOURCE_DIR}/assets/images/sword.png | |
28 FOLDER examples | |
29 LIBRARIES libcore | |
30 ) | |
31 | |
32 molko_define_executable( | |
33 TARGET example-message | |
34 SOURCES example-message.c | |
35 FOLDER examples | |
36 LIBRARIES libcore | |
37 ) | |
38 | |
39 molko_define_executable( | |
40 TARGET example-sound | |
41 SOURCES example-sound.c | |
42 FOLDER examples | |
43 ASSETS | |
44 ${examples_SOURCE_DIR}/assets/sounds/vabsounds-romance.ogg | |
45 LIBRARIES libcore | |
46 ) |