summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-07-26 16:53:57 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-07-26 16:53:57 +0200
commitcc7eb035bcdf5a84a5ba907fa50e330dad538871 (patch)
tree85aa3554f38de3df8d1208136b203369cce2d02f /CMakeLists.txt
parent2017-07-24 (diff)
downloadAltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar.gz
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar.bz2
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar.lz
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar.xz
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.tar.zst
AltCraft-cc7eb035bcdf5a84a5ba907fa50e330dad538871.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt19
1 files changed, 8 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c5afaa..f165a67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.8)
project(AltCraft)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+include(externalProject)
##########
# SOURCES
@@ -27,7 +28,7 @@ add_definitions(${LOGGER_DEFINITIONS})
#Set compiler's flags and setup platfrom-dependent libraries
if (CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror")
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
@@ -47,7 +48,7 @@ target_include_directories(AltCraft PUBLIC ./depedencies/include)
target_link_libraries(AltCraft deps)
#Setup SFML
-set(SFML_ROOT "${CMAKE_SOURCE_DIR}/SFML-2.4.2")
+set (SFML_ROOT "${CMAKE_SOURCE_DIR}/external/SFML")
find_package(SFML 2.3 COMPONENTS system window graphics network REQUIRED)
if (SFML_FOUND)
target_link_libraries(AltCraft ${SFML_LIBRARIES})
@@ -56,6 +57,11 @@ else ()
message(FATAL_ERROR "SFML not found!")
endif ()
+#Setup SFML
+#add_subdirectory(external/SFML)
+#target_include_directories(AltCraft PUBLIC external/SFML/include)
+#target_link_libraries(AltCraft sfml-main sfml-system sfml-network sfml-window sfml-graphics)
+
#Setup OpenGL
find_package(OpenGL REQUIRED)
if (OPENGL_FOUND)
@@ -65,15 +71,6 @@ else ()
message(FATAL_ERROR "OpenGL not found!")
endif ()
-#Setup Zlib
-#find_package(ZLIB REQUIRED)
-#if (ZLIB_FOUND)
-# target_link_libraries(AltCraft ${ZLIB_LIBRARIES})
-# target_include_directories(AltCraft PUBLIC ${ZLIB_INCLUDE_DIR})
-#else ()
-# message(FATAL_ERROR "Zlib not found!")
-#endif ()
-
#################
# COPY RESOURCES
#################