about summary refs log tree commit diff stats
path: root/data/maps/the_stellar/metadata.txtpb
blob: 2aeb43c244634108702ce167a73c5911751d236f (plain) (blame)
1
2
3
4
5
6
7
8
9
display_name: "The Stellar"
type: GIFT_MAP
rte_room: "Starting Room"
rte_trigger_pos { x: 0 y: 0 z: -3 }
rte_trigger_scale { x: 6 y: 1 z: 6 }
# This panel does not appear to be accessible without sniping.
excluded_nodes: "Panels/Room_1/panel_2"
# The map's mastery is created at runtime.
custom_nodes: "Components/Collectables/collectable"
l { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
cmake_minimum_required(VERSION 2.6)
project(Aromatherapy)

# Use our modified FindSDL2* modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Aromatherapy_SOURCE_DIR}/cmake")
# Set an output directory for our binaries
set(BIN_DIR ${Aromatherapy_SOURCE_DIR}/bin)

# Bump up warning levels appropriately for clang, gcc & msvc
# Also set debug/optimization flags depending on the build type. IDE users choose this when
# selecting the build mode in their IDE
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -std=c++11")
	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -g")
	set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -O2")
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
	if (CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
		string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
	else()
		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
	endif()
endif()

# Look up SDL2 and add the include directory to our include path
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(GLFW REQUIRED)
find_package(portaudio REQUIRED)
find_package(libsndfile REQUIRED)
find_package(libxml2 REQUIRED)

set(ALL_LIBS
  ${OPENGL_LIBRARY}
  ${GLEW_LIBRARY}
  ${GLFW_LIBRARY}
  ${PORTAUDIO_LIBRARIES}
  ${LIBSNDFILE_LIBRARY}
  ${LIBXML2_LIBRARIES}
)

include_directories(
  ${LIBXML2_INCLUDE_DIR}
  src
)

# include_directories(${SDL2_INCLUDE_DIR})
set(CMAKE_BUILD_TYPE Debug)
add_executable(Aromatherapy
  src/main.cpp
  src/map.cpp
  src/renderer.cpp
  src/entity.cpp
  src/game.cpp
  src/muxer.cpp
  src/entityfactory.cpp
  src/components/map_collision.cpp
  src/components/map_render.cpp
  src/components/physics_body.cpp
  src/components/player_physics.cpp
  src/components/player_sprite.cpp
  src/components/simple_collider.cpp
  src/components/static_image.cpp
  src/components/user_movement.cpp
)
target_link_libraries(Aromatherapy ${ALL_LIBS})
install(TARGETS Aromatherapy RUNTIME DESTINATION ${BIN_DIR})