Add OxStd as dependency
This commit is contained in:
parent
2c3b78e79a
commit
ae5b199b1f
@ -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)
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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}
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user