From 4a9c75233dc0faebf625011a52f7db354e7c1417 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 20 Feb 2021 14:22:56 +0100 Subject: Build only necessary SFML libraries. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c21d2..7722d89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,14 @@ if(NOT EXISTS "${PROJECT_SOURCE_DIR}/external/SFML/CMakeLists.txt") message(FATAL_ERROR "The submodules were not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again.") endif() +# Set SFML variables. +set(SFML_BUILD_EXAMPLES OFF) +set(SFML_BUILD_DOC OFF) +set(SFML_BUILD_AUDIO OFF) +set(SFML_BUILD_GRAPHICS ON) +set(SFML_BUILD_WINDOW ON) +set(SFML_BUILD_NETWORK OFF) + # Compile and add SFML to project add_subdirectory(external/SFML) target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-window sfml-system) -- cgit v1.2.3