Merge pull request #1 from JuhaSointusalo/fix-windows-dll-build fix building DLL on Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6c5a57..6b230ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
OPTION(BUILD_SHARED_LIBS "Build Shared Libraries" ON)
IF(BUILD_SHARED_LIBS)
SET(LIB_TYPE SHARED)
+ ADD_DEFINITIONS(-DFTGL_LIBRARY)
ELSE(BUILD_SHARED_LIBS)
SET(LIB_TYPE STATIC)
ADD_DEFINITIONS(-D FTGL_LIBRARY_STATIC)