From 2553e5d8aa803565020f61f9fd16eb4d60ed25dc Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 23 Feb 2021 01:56:09 +0100 Subject: [PATCH] Remove comments from cmake build file --- CMakeLists.txt | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe45470..9f77ba8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,6 @@ # User config between these lines # ------------------------------------------ -# Set engine name -set(ENGINE "unnamed") # Set project name set(GAME "rpg") # Set debugging, ON/OFF @@ -51,9 +49,6 @@ include_directories( "deps/SFML/include" ) -# file(GLOB_RECURSE SFML "deps/SFML/src/*.cpp") -# set(ENGINE_SOURCES ${SFML}) - # Define game source files file(GLOB_RECURSE GAME_SOURCES "src/*.cpp") set(GAME_SOURCES ${GAME_SOURCES}) @@ -72,48 +67,5 @@ set(SFML_USE_SYSTEM_DEPS OFF CACHE BOOL "" FORCE) # Add SFML target to project add_subdirectory(deps/SFML) -# set (SFML_DIR "${CMAKE_SOURCE_DIR}/deps/SFML") -# set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/deps/SFML/cmake") -# find_package (SFML 2.5.1 COMPONENTS system window graphics network audio REQUIRED) - add_executable(${GAME} ${GAME_SOURCES}) target_link_libraries(${GAME} sfml-system sfml-window sfml-network sfml-graphics sfml-audio) - -# ------------------------------------------------------------------------ - -# file(GLOB_RECURSE SFML "deps/SFML/src/*.cpp") -# set(ENGINE_SOURCES ${SFML}) - -# # Define game source files -# file(GLOB_RECURSE GAME_SOURCES "src/*.cpp") -# set(GAME_SOURCES ${GAME_SOURCES}) - -# # ------------------------------------------ - -# project(${ENGINE}) -# set(CMAKE_CXX_STANDARD 11) - -# # SFML options -# set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) -# set(SFML_BUILD_DOC OFF CACHE BOOL "" FORCE) -# set(SFML_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) -# set(SFML_USE_SYSTEM_DEPS OFF CACHE BOOL "" FORCE) - -# # Add SFML target to project -# add_subdirectory(deps/SFML) - -# # set (SFML_DIR "${CMAKE_SOURCE_DIR}/deps/SFML") -# # set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/deps/SFML/cmake") -# # find_package (SFML 2.5.1 COMPONENTS system window graphics network audio REQUIRED) - - -# add_library(${ENGINE} STATIC ${ENGINE_SOURCES}) -# target_link_libraries(${ENGINE} sfml-system sfml-window sfml-network sfml-graphics sfml-audio) - -# # ------------------------------------------ - -# project(${GAME}) -# set(CMAKE_CXX_STANDARD 11) - -# add_executable(${GAME} ${GAME_SOURCES}) -# target_link_libraries(${GAME} ${ENGINE})