From 921c5b3266aa55eedb6d1e33ce244a3602d4deeb Mon Sep 17 00:00:00 2001 From: Mitchell Hansen Date: Sun, 17 Jul 2016 21:29:31 -0700 Subject: [PATCH] Added root question for CMake on windows --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d17242e..1a12dd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ - set(PNAME Game) +set(SFML_ROOT root CACHE STRING "User specified path") + set(SFML_VERSION 2.3) set(SFML_COMPONENTS graphics window system network audio) @@ -11,7 +12,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) project(${PNAME}) find_package(SFML ${SFML_VERSION} COMPONENTS ${SFML_COMPONENTS} REQUIRED) -include_directories(${SFML_INCLUDE_DIR}) +include_directories(${SFML_INCLUDE_DIR}/include) include_directories(include) file(GLOB SOURCES "src/*.cpp") @@ -21,6 +22,3 @@ target_link_libraries(${PNAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES}) set_property(TARGET ${PNAME} PROPERTY CXX_STANDARD 11) # Use C++11 -#if(NOT WIN32 OR MINGW) -# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # Show all warnings for GCC -#endif() \ No newline at end of file