diff options
author | Mateja <mail@matejamaric.com> | 2021-02-20 14:22:56 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-20 14:22:56 +0100 |
commit | 4a9c75233dc0faebf625011a52f7db354e7c1417 (patch) | |
tree | cbe74cfb35800029937a133b551a15a5798e0841 | |
parent | 624964150348a079a37105d16a62145d625f6720 (diff) | |
download | erender-4a9c75233dc0faebf625011a52f7db354e7c1417.tar.gz erender-4a9c75233dc0faebf625011a52f7db354e7c1417.zip |
Build only necessary SFML libraries.
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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) |