nostalgia/src/CMakeLists.txt

36 lines
832 B
CMake
Raw Normal View History

2016-03-26 15:49:05 -05:00
cmake_minimum_required(VERSION 2.8.8)
#setup libraries
if(WOMBAT_BUILD_TYPE STREQUAL "Native")
find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR})
set(LIBS ${LIBS} ${SDL_LIBRARY})
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
set(LIBS ${LIBS} ${OPENGL_LIBRARY})
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()
#project packages
include_directories(".")
add_subdirectory(core)
set(OBJS ${OBJS} $<TARGET_OBJECTS:NostalgiaCommon>)
add_subdirectory(common)
set(OBJS ${OBJS} $<TARGET_OBJECTS:NostalgiaCommon>)
add_subdirectory(player)