Skip to content

Commit

Permalink
Rebuild project
Browse files Browse the repository at this point in the history
  • Loading branch information
stanfortonski committed Jul 19, 2020
1 parent cebbe1e commit 9ceed7b
Show file tree
Hide file tree
Showing 65 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions GameFiles/CMakeLists.txt → CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ include_directories(include)
link_directories(${CMAKE_SOURCE_DIR}/lib)
include_directories(${CMAKE_BINARY_DIR}/include)

INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)

add_compile_options(-m64)
set(ENGINE_NAME engine)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-O4")
set(BUILD_SHARED_LIBS True)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/../build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/../build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
set(CMAKE_BUILD_TYPE Release)

if(MINGW)
Expand All @@ -33,28 +31,28 @@ find_package(GLFW3 REQUIRED)
find_package(ASSIMP REQUIRED)
find_package(Freetype REQUIRED)

set(LIBS glfw3 gdi32 opengl32 glew32 assimp zlibstatic)
set(LIBS glfw gdi32 opengl32 glew32 assimp zlibstatic)

include_directories(
"${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/include"
)

#make stb_image lib
add_library(stb_image ${CMAKE_SOURCE_DIR}/../../src/stb_image.cpp)
add_library(stb_image ${CMAKE_SOURCE_DIR}/src/stb_image.cpp)
set(LIBS ${LIBS} stb_image)

#make engine lib
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/../../src/engine/*.cpp)
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/engine/*.cpp)
add_library(${ENGINE_NAME} ${SOURCES})

set(LIBS ${LIBS} ${FREETYPE_LIBRARIES})
target_link_libraries(${ENGINE_NAME} ${LIBS})
target_include_directories(${ENGINE_NAME} PRIVATE ${FREETYPE_INCLUDE_DIRS})

#make exe file
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/../src/*.cpp)
add_executable(${PROJECT_NAME} ${SOURCES} ${CMAKE_SOURCE_DIR}/../src/app.rc)
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/game/*.cpp)
add_executable(${PROJECT_NAME} ${SOURCES} ${CMAKE_SOURCE_DIR}/src/game/app.rc)

target_link_libraries(
${PROJECT_NAME}
Expand Down
Empty file removed GameFiles/cmake/empty.txt
Empty file.
8 changes: 0 additions & 8 deletions GameFiles/comp.bat

This file was deleted.

2 changes: 2 additions & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.dll
*.exe
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
5 changes: 5 additions & 0 deletions comp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off

cmake -G "MinGW Makefiles" .
mingw32-make
pause
1 change: 0 additions & 1 deletion src/engine/support/TextureLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <stdexcept>
#include <vector>
#include <GL/glew.h>
#include <GL/glext.h>
#include <stb_image.h>
#include "../Config.hpp"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion GameFiles/src/app.rc → src/game/app.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef APP_RC
#define APP_RC 1

MAINICON ICON "../build/stickman.ico"
MAINICON ICON "../../build/stickman.ico"

#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9ceed7b

Please sign in to comment.