Add OxStd as dependency

This commit is contained in:
Gary Talent 2017-04-06 17:56:04 -05:00
parent 2c3b78e79a
commit ae5b199b1f
4 changed files with 16 additions and 16 deletions

View File

@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 2.8.8)
#setup libraries #setup libraries
if(WOMBAT_BUILD_TYPE STREQUAL "Native") if(WOMBAT_BUILD_TYPE STREQUAL "Native")
find_package(SDL REQUIRED) #find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR}) #include_directories(${SDL_INCLUDE_DIR})
set(LIBS ${LIBS} ${SDL_LIBRARY}) #set(LIBS ${LIBS} ${SDL_LIBRARY})
find_package(OpenGL REQUIRED) #find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR}) #include_directories(${OPENGL_INCLUDE_DIR})
set(LIBS ${LIBS} ${OPENGL_LIBRARY}) #set(LIBS ${LIBS} ${OPENGL_LIBRARY})
#find_package(SDL_IMAGE REQUIRED) #find_package(SDL_IMAGE REQUIRED)
#include_directories(${SDL_IMAGE_INCLUDE_DIR}) #include_directories(${SDL_IMAGE_INCLUDE_DIR})
@ -23,16 +23,11 @@ endif()
find_package(Ox REQUIRED) find_package(Ox REQUIRED)
include_directories(${Ox_INCLUDE_DIRS}) include_directories(${Ox_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OxFs_LIBRARY})
#project packages #project packages
include_directories(".") include_directories(".")
add_subdirectory(core) add_subdirectory(core)
set(OBJS ${OBJS} $<TARGET_OBJECTS:NostalgiaCommon>)
add_subdirectory(common) add_subdirectory(common)
set(OBJS ${OBJS} $<TARGET_OBJECTS:NostalgiaCommon>)
add_subdirectory(player) add_subdirectory(player)

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.8) cmake_minimum_required(VERSION 2.8.8)
add_library( add_library(
NostalgiaCommon OBJECT NostalgiaCommon
bounds.cpp bounds.cpp
point.cpp point.cpp
) )

View File

@ -10,7 +10,8 @@ if(WOMBAT_BUILD_TYPE STREQUAL "GBA")
elseif(WOMBAT_BUILD_TYPE STREQUAL "Native") elseif(WOMBAT_BUILD_TYPE STREQUAL "Native")
endif() endif()
add_library(NostalgiaCore add_library(
NostalgiaCore
${CPP} ${CPP}
core.cpp core.cpp
) )

View File

@ -17,4 +17,8 @@ if(COMMAND objcopy_file)
objcopy_file(nostalgia) objcopy_file(nostalgia)
endif() endif()
target_link_libraries(nostalgia NostalgiaCore) target_link_libraries(
nostalgia
NostalgiaCore
${OxStd_LIBRARY}
)