Added option to allow SFML to be linked dynamically

This commit is contained in:
Zachariah Brown committed 2014-06-06 16:38:20 -04:00
1 parent a6fdf83073
commit 4e509ff160
2 files changed
+7 -2

No files matched your search

+4 -2
View File
@@ -18,8 +18,10 @@ endif()
# find SFML libraries (C++)
if(SFML_OS_WINDOWS)
set(SFML_STATIC_LIBRARIES TRUE)
add_definitions(-DSFML_STATIC)
if (CSFML_LINK_SFML_STATICALLY)
set(SFML_STATIC_LIBRARIES TRUE)
add_definitions(-DSFML_STATIC)
endif()
endif()
find_package(SFML 2 COMPONENTS system window network graphics audio REQUIRED)
include_directories(${SFML_INCLUDE_DIR})