2016-03-26 15:49:05 -05:00
|
|
|
cmake_minimum_required(VERSION 2.8.8)
|
|
|
|
|
|
|
|
#setup libraries
|
|
|
|
|
|
|
|
if(WOMBAT_BUILD_TYPE STREQUAL "Native")
|
2017-04-06 17:56:04 -05:00
|
|
|
#find_package(SDL REQUIRED)
|
|
|
|
#include_directories(${SDL_INCLUDE_DIR})
|
|
|
|
#set(LIBS ${LIBS} ${SDL_LIBRARY})
|
2016-03-26 15:49:05 -05:00
|
|
|
|
2017-04-06 17:56:04 -05:00
|
|
|
#find_package(OpenGL REQUIRED)
|
|
|
|
#include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
#set(LIBS ${LIBS} ${OPENGL_LIBRARY})
|
2016-03-26 15:49:05 -05:00
|
|
|
|
2016-12-23 17:29:19 -06:00
|
|
|
#find_package(SDL_IMAGE REQUIRED)
|
|
|
|
#include_directories(${SDL_IMAGE_INCLUDE_DIR})
|
|
|
|
#set(LIBS ${LIBS} ${SDL_IMAGE_LIBRARY})
|
2016-03-26 15:49:05 -05:00
|
|
|
|
2016-12-23 17:29:19 -06:00
|
|
|
#find_package(SDL_ttf REQUIRED)
|
|
|
|
#include_directories(${SDL_TTF_INCLUDE_DIR})
|
|
|
|
#set(LIBS ${LIBS} ${SDL_TTF_LIBRARY})
|
2016-03-26 15:49:05 -05:00
|
|
|
elseif(WOMBAT_BUILD_TYPE STREQUAL "GBA")
|
|
|
|
endif()
|
|
|
|
|
2016-12-24 00:41:57 -06:00
|
|
|
find_package(Ox REQUIRED)
|
|
|
|
include_directories(${Ox_INCLUDE_DIRS})
|
2016-03-26 15:49:05 -05:00
|
|
|
|
|
|
|
#project packages
|
|
|
|
|
|
|
|
include_directories(".")
|
|
|
|
|
|
|
|
add_subdirectory(core)
|
|
|
|
add_subdirectory(common)
|
|
|
|
add_subdirectory(player)
|