Move headers into `simpleengine` directory.

This commit is contained in:
SeanOMik 2020-07-02 22:53:28 -05:00
parent 4d87f53cf2
commit 7a1c31375d
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
6 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.6) cmake_minimum_required (VERSION 3.6)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
project(GameEngine) project(SimpleEngine)
# Add some CMake options: # Add some CMake options:
option(BUILD_EXAMPLES "Build example projects" ON) option(BUILD_EXAMPLES "Build example projects" ON)
@ -14,13 +14,13 @@ find_package(SFML REQUIRED COMPONENTS system main window graphics audio)
# Link sources # Link sources
file(GLOB_RECURSE source_list src/*.cpp) file(GLOB_RECURSE source_list src/*.cpp)
add_library(gameengine STATIC ${source_list}) add_library(simpleengine STATIC ${source_list})
# Link headers # Link headers
target_include_directories(gameengine PUBLIC include PRIVATE include/gameengine) target_include_directories(simpleengine PUBLIC include PRIVATE include/simpleengine)
# Link dependencies # Link dependencies
target_link_libraries(gameengine PUBLIC sfml-system sfml-main sfml-window OpenGL sfml-network sfml-graphics Freetype OpenAL Vorbis FLAC sfml-audio) target_link_libraries(simpleengine PUBLIC sfml-system sfml-main sfml-window OpenGL sfml-network sfml-graphics Freetype OpenAL Vorbis FLAC sfml-audio)
# Add examples as a target if the user has them enabled # Add examples as a target if the user has them enabled
if (BUILD_EXAMPLES) if (BUILD_EXAMPLES)
@ -28,4 +28,4 @@ if (BUILD_EXAMPLES)
endif() endif()
# Set C++ standard to C++17 # Set C++ standard to C++17
set_target_properties(gameengine PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF) set_target_properties(simpleengine PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF)

View File

@ -8,8 +8,8 @@ file(GLOB_RECURSE source_list src/*.cpp)
target_sources(first_example PRIVATE ${source_list}) target_sources(first_example PRIVATE ${source_list})
target_include_directories(first_example PUBLIC include) target_include_directories(first_example PUBLIC include)
# Link gameengine # Link simpleengine
target_link_libraries(first_example PUBLIC gameengine) target_link_libraries(first_example PUBLIC simpleengine)
# Set standard to C++17 # Set standard to C++17
set_target_properties(first_example PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF) set_target_properties(first_example PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF)

View File

@ -6,9 +6,9 @@
#include <iostream> #include <iostream>
#include <gameengine/game.h> #include <simpleengine/game.h>
#include <gameengine/event.h> #include <simpleengine/event.h>
#include <gameengine/entity.h> #include <simpleengine/entity.h>
class PlayerEntity : public simpleengine::Entity { class PlayerEntity : public simpleengine::Entity {
private: private: