aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-20 16:44:22 +0100
committerMateja <mail@matejamaric.com>2021-02-20 16:44:22 +0100
commitb03e779e2385a54613c531504ef37d05bca7ab9b (patch)
tree649d161583c3c4dcd97208095cc3bb1177ce8615
parentb46c409749b7263492bca824c68eb58600d06841 (diff)
parent45cf33be84c9227ef4a9648e4acd243fb68f88b6 (diff)
downloaderender-0.5.tar.gz
erender-0.5.zip
Merge branch 'fix-issue-5'v0.5
-rw-r--r--CMakeLists.txt13
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