diff options
author | Mateja <mail@matejamaric.com> | 2021-02-20 16:44:22 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-20 16:44:22 +0100 |
commit | b03e779e2385a54613c531504ef37d05bca7ab9b (patch) | |
tree | 649d161583c3c4dcd97208095cc3bb1177ce8615 /CMakeLists.txt | |
parent | b46c409749b7263492bca824c68eb58600d06841 (diff) | |
parent | 45cf33be84c9227ef4a9648e4acd243fb68f88b6 (diff) | |
download | erender-b03e779e2385a54613c531504ef37d05bca7ab9b.tar.gz erender-b03e779e2385a54613c531504ef37d05bca7ab9b.zip |
Merge branch 'fix-issue-5'v0.5
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e8e8210..9ed7983 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,10 +31,19 @@ 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) + +# Don't use shared libraries. +set(BUILD_SHARED_LIBS OFF) + # Compile and add SFML to project add_subdirectory(external/SFML) -target_include_directories(${PROJECT_NAME} PUBLIC external/SFML/include) -target_link_directories(${PROJECT_NAME} PUBLIC external/SFML/lib) target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-window sfml-system) # Copy model to build directory |