view libadventure/CMakeLists.txt @ 162:629f55f3961e

core: rework states
author David Demelier <markand@malikania.fr>
date Sun, 18 Oct 2020 12:01:59 +0200
parents c577c15df07f
children 852d0b7817ce
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for libadventure
#
# Copyright (c) 2020 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

project(libadventure)

set(
	STATE_SOURCES
	${libadventure_SOURCE_DIR}/adventure/state/mainmenu.c
	${libadventure_SOURCE_DIR}/adventure/state/mainmenu.h
	${libadventure_SOURCE_DIR}/adventure/state/panic.c
	${libadventure_SOURCE_DIR}/adventure/state/panic.h
	${libadventure_SOURCE_DIR}/adventure/state/splashscreen.c
	${libadventure_SOURCE_DIR}/adventure/state/splashscreen.h
)

set(
	SOURCES
	${libadventure_SOURCE_DIR}/adventure/trace_hud.c
	${libadventure_SOURCE_DIR}/adventure/trace_hud.h
)

set(
	ASSETS
	${libadventure_SOURCE_DIR}/adventure/assets/fonts/cubic.ttf
	${libadventure_SOURCE_DIR}/adventure/assets/fonts/lato.ttf
	${libadventure_SOURCE_DIR}/adventure/assets/fonts/teutonic.ttf
	${libadventure_SOURCE_DIR}/adventure/assets/fonts/pirata-one.ttf
	${libadventure_SOURCE_DIR}/adventure/assets/maps/overworld.map
	${libadventure_SOURCE_DIR}/adventure/assets/sprites/john.png
	${libadventure_SOURCE_DIR}/adventure/assets/tilesets/world.png
)

molko_define_library(
	TARGET libadventure
	SOURCES
		${STATE_SOURCES}
		${SOURCES}
	ASSETS ${ASSETS}
	LIBRARIES libcore libui librpg
	PUBLIC_INCLUDES
		$<BUILD_INTERFACE:${libadventure_SOURCE_DIR}>
)

source_group(adventure FILES ${SOURCES})
source_group(adventure/state FILES ${STATE_SOURCES})