comparison examples/example-drawable/CMakeLists.txt @ 447:e1fa1b867281

cmake: resurrection Using GNU make for such a big project is tedious.
author David Demelier <markand@malikania.fr>
date Sat, 18 Feb 2023 12:43:05 +0100
parents
children 541cb950997b
comparison
equal deleted inserted replaced
446:4607eea0eabc 447:e1fa1b867281
1 #
2 # CMakeLists.txt -- CMake build system for Molko's Engine
3 #
4 # Copyright (c) 2020-2022 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(example-drawable)
20
21 set(
22 SOURCES
23 ${example-drawable_SOURCE_DIR}/main.c
24 )
25
26 set(
27 ASSETS
28 ${example-drawable_SOURCE_DIR}/assets/sprites/explosion.png
29 )
30
31 mlk_executable(
32 NAME example-drawable
33 FOLDER examples
34 LIBRARIES libmlk-ui
35 SOURCES ${ASSETS} ${SOURCES}
36 ASSETS ${ASSETS}
37 )
38
39 source_group(TREE ${example-drawable_SOURCE_DIR} FILES ${ASSETS} ${SOURCES})