diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 53aa8614..daf06e22 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,13 +3,13 @@ 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(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}) + #find_package(OpenGL REQUIRED) + #include_directories(${OPENGL_INCLUDE_DIR}) + #set(LIBS ${LIBS} ${OPENGL_LIBRARY}) #find_package(SDL_IMAGE REQUIRED) #include_directories(${SDL_IMAGE_INCLUDE_DIR}) @@ -23,16 +23,11 @@ endif() find_package(Ox REQUIRED) include_directories(${Ox_INCLUDE_DIRS}) -set(LIBS ${LIBS} ${OxFs_LIBRARY}) #project packages include_directories(".") add_subdirectory(core) -set(OBJS ${OBJS} $) - add_subdirectory(common) -set(OBJS ${OBJS} $) - add_subdirectory(player) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 8e736653..8ed84437 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.8.8) add_library( - NostalgiaCommon OBJECT + NostalgiaCommon bounds.cpp point.cpp ) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index be819546..93cfb318 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -10,9 +10,10 @@ if(WOMBAT_BUILD_TYPE STREQUAL "GBA") elseif(WOMBAT_BUILD_TYPE STREQUAL "Native") endif() -add_library(NostalgiaCore - ${CPP} - core.cpp +add_library( + NostalgiaCore + ${CPP} + core.cpp ) install( diff --git a/src/player/CMakeLists.txt b/src/player/CMakeLists.txt index 2ca784d3..72e20649 100644 --- a/src/player/CMakeLists.txt +++ b/src/player/CMakeLists.txt @@ -17,4 +17,8 @@ if(COMMAND objcopy_file) objcopy_file(nostalgia) endif() -target_link_libraries(nostalgia NostalgiaCore) +target_link_libraries( + nostalgia + NostalgiaCore + ${OxStd_LIBRARY} +)