
#SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS( -Wall )

FIND_PACKAGE(SDL REQUIRED)
INCLUDE_DIRECTORIES( ${SDL_INCLUDE_DIR} )

FIND_PACKAGE(SDL_mixer REQUIRED)
INCLUDE_DIRECTORIES( ${SDLMIXER_INCLUDE_DIR} )

FIND_PACKAGE(OpenGL REQUIRED)
INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} )

set(
  zct_SRCS
		src/game/app.cpp
		src/game/being.cpp
		src/game/controller.cpp
		src/game/display.cpp
		src/game/error.cpp
		src/game/location.cpp
		src/game/main.cpp
		src/game/map.cpp
		src/game/organizer.cpp
		src/game/pathnode.cpp
		src/game/point.cpp
		src/game/tile.cpp
)

ADD_EXECUTABLE(
	zct
	${zct_SRCS}
)

TARGET_LINK_LIBRARIES(
	zct
		${SDL_LIBRARY}
		${SDLMIXER_LIBRARY}
		${OPENGL_LIBRARIES}
)

set(
  zctedit_SRCS
		src/editor/app.cpp
		src/editor/being.cpp
		src/editor/controller.cpp
		src/editor/display.cpp
		src/editor/error.cpp
		src/editor/location.cpp
		src/editor/main.cpp
		src/editor/map.cpp
		src/editor/pathnode.cpp
		src/editor/point.cpp
		src/editor/tile.cpp
)

ADD_EXECUTABLE(
	zctedit
	${zctedit_SRCS}
)

TARGET_LINK_LIBRARIES(
	zctedit
		${SDL_LIBRARY}
		${OPENGL_LIBRARIES}
)
	
