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 15f4817 commit ee0b861
Show file tree
Hide file tree
Showing 39 changed files with 14 additions and 18 deletions.
Empty file removed AppFiles/cmake/empty.txt
Empty file.
8 changes: 0 additions & 8 deletions AppFiles/comp.bat

This file was deleted.

16 changes: 7 additions & 9 deletions AppFiles/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)

find_package(OpenGL REQUIRED)
Expand All @@ -26,27 +24,27 @@ 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)
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/generator/*.cpp)
add_executable(${PROJECT_NAME} ${SOURCES})

target_link_libraries(
Expand Down
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
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.

0 comments on commit ee0b861

Please sign in to comment.