Skip to content

Commit

Permalink
update cmakelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopson97 committed Jul 28, 2019
1 parent efcaafc commit 5774448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ project(mc-one-week)
file(GLOB_RECURSE SOURCES Source/*.cpp)
add_executable(mc-one-week ${SOURCES})

#Include directory
include_directories(src/Dependencies/)

#Add libraries
#SFML
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
Expand All @@ -31,9 +28,8 @@ add_library("glad" "${GLAD_DIR}/glad.c")
target_include_directories("glad" PRIVATE "${GLAD_DIR}")
target_include_directories(${PROJECT_NAME} PUBLIC ${GLM_INCLUDE_DIRS} PRIVATE "${GLAD_DIR}")
target_link_libraries(${PROJECT_NAME} "glad" "${CMAKE_DL_LIBS}")


find_package(Threads)

target_link_libraries(mc-one-week Threads::Threads ${EXECUTABLE_NAME} ${SFML_LIBRARIES})

#Copy resources
file(COPY ${CMAKE_SOURCE_DIR}/Res DESTINATION ${CMAKE_BINARY_DIR})
7 changes: 2 additions & 5 deletions Source/Context.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef CONTEXT_H_INCLUDED
#define CONTEXT_H_INCLUDED
#pragma once

#include <SFML/Graphics.hpp>
#include <SFML/Window/Window.hpp>

#include "Config.h"

Expand All @@ -11,5 +10,3 @@ struct Context

sf::Window window;
};

#endif // CONTEXT_H_INCLUDED

0 comments on commit 5774448

Please sign in to comment.