mirror of
https://github.com/devZoGok/gameBase.git
synced 2026-08-26 19:43:28 +00:00
reordered source files
This commit is contained in:
+29
-33
@@ -1,44 +1,40 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(Engine)
|
||||
project(gameBase)
|
||||
|
||||
set(LIB_NAME Engine)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
cmake_policy(SET CMP0015 NEW)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
set(CORE_SRC
|
||||
Source/Core/Private/util.cpp)
|
||||
source/core/abstractAppState.cpp
|
||||
source/core/stateManager.cpp
|
||||
source/core/inputManager.cpp
|
||||
source/core/soundManager.cpp)
|
||||
|
||||
set(SYSTEMS_SRC
|
||||
Source/Systems/Private/abstractAppState.cpp
|
||||
Source/Systems/Private/stateManager.cpp
|
||||
Source/Systems/Private/soundManager.cpp)
|
||||
set(UTILS_SRC
|
||||
source/utils/solUtil.cpp
|
||||
source/utils/util.cpp)
|
||||
|
||||
set(PLATFORM_SRC
|
||||
Source/Platform/Private/inputManager.cpp)
|
||||
set(LIB_NAME gameBase)
|
||||
add_library(${LIB_NAME} ${CORE_SRC} ${UTILS_SRC})
|
||||
|
||||
set(SCRIPTING_SRC
|
||||
Source/Scripting/Private/solUtil.cpp)
|
||||
set(GLFW_DIR external/glfw)
|
||||
set(GLFW_LIB_DIR build/external/glfw/src)
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${GLFW_DIR}/include/GLFW)
|
||||
target_link_directories(${LIB_NAME} PUBLIC ${GLFW_LIB_DIR})
|
||||
|
||||
set(ENGINE_SRC ${CORE_SRC} ${SYSTEMS_SRC} ${PLATFORM_SRC} ${SCRIPTING_SRC})
|
||||
set(LUA_DIR external/lua-cmake)
|
||||
add_subdirectory(${LUA_DIR})
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${LUA_DIR}/external/upstream)
|
||||
|
||||
add_library(${LIB_NAME} ${ENGINE_SRC})
|
||||
set(SOL_DIR external/sol2)
|
||||
add_subdirectory(${SOL_DIR})
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${SOL_DIR}/include)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Source/Core/Public
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Source/Systems/Public
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Source/Platform/Public
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Source/Scripting/Public)
|
||||
set(SFML_DIR external/SFML)
|
||||
add_subdirectory(${SFML_DIR})
|
||||
set(SFML_LIB_DIR build/${SFML_DIR}/src)
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${SFML_DIR}/include)
|
||||
target_link_directories(${LIB_NAME} PUBLIC ${SFML_LIB_DIR})
|
||||
|
||||
set(THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/ThirdParty)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${THIRDPARTY_DIR}/GLFW/include)
|
||||
target_link_libraries(${LIB_NAME} PUBLIC glfw)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC
|
||||
${THIRDPARTY_DIR}/Lua/upstream)
|
||||
target_link_libraries(${LIB_NAME} PUBLIC lua::lib)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC
|
||||
${THIRDPARTY_DIR}/sol2/include)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC
|
||||
${THIRDPARTY_DIR}/SFML/include)
|
||||
target_link_libraries(${LIB_NAME} PUBLIC sfml-system sfml-audio)
|
||||
target_link_libraries(${LIB_NAME} sfml-system sfml-audio glfw lua::lib)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "abstractAppState.h"
|
||||
#include "util.h"
|
||||
#include "../utils/util.h"
|
||||
#include "mapping.h"
|
||||
|
||||
namespace gameBase {
|
||||
@@ -2,7 +2,7 @@
|
||||
#define ABSTRACT_APP_STATE_H
|
||||
|
||||
#include "mapping.h"
|
||||
#include "solUtil.h"
|
||||
#include "../utils/solUtil.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "inputManager.h"
|
||||
#include "stateManager.h"
|
||||
#include "util.h"
|
||||
#include "../utils/util.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <cmath>
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "util.h"
|
||||
#include "../utils/util.h"
|
||||
|
||||
namespace sf{
|
||||
class Music;
|
||||
@@ -1,9 +1,9 @@
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "mapping.h"
|
||||
#include "stateManager.h"
|
||||
#include "abstractAppState.h"
|
||||
#include "../core/mapping.h"
|
||||
#include "../core/stateManager.h"
|
||||
#include "../core/abstractAppState.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace chrono;
|
||||
Reference in New Issue
Block a user