added the cmake folder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
diff --git a/cmake/FindFTGL.cmake b/cmake/FindFTGL.cmake
new file mode 100644
index 0000000..edfa4a7
--- /dev/null
+++ b/cmake/FindFTGL.cmake
@@ -0,0 +1,58 @@
+# - Locate FTGL library
+# This module defines
+# FTGL_LIBRARIES, the library to link against
+# FTGL_FOUND, if false, do not try to link to FTGL
+# FTGL_INCLUDE_DIRS, where to find headers.
+#
+# $FTGL_DIR is an environment variable that points to the main ftgl directory.
+
+#=============================================================================
+# Copyright 2011 Richard Ulrich.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+
+# Created by Richard Ulrich.
+
+FIND_PATH(FTGL_INCLUDE_DIR FTGL/ftgl.h
+ HINTS
+ $ENV{FTGL_DIR}
+ PATH_SUFFIXES include src
+ PATHS
+ /usr/include
+ /usr/local/include
+ /sw/include
+ /opt/local/include
+ /usr/freeware/include
+)
+
+FIND_LIBRARY(FTGL_LIBRARY
+ NAMES ftgl libftgl ftgl_static
+ HINTS
+ $ENV{FTGL_DIR}
+ PATH_SUFFIXES lib64 lib
+ PATHS
+ /usr/lib
+ /usr/local/lib
+ /sw
+ /usr/freeware
+)
+
+# set the user variables
+IF(FTGL_INCLUDE_DIR)
+ SET(FTGL_INCLUDE_DIRS "${FTGL_INCLUDE_DIR}")
+ENDIF()
+SET(FTGL_LIBRARIES "${FTGL_LIBRARY}")
+
+# handle the QUIETLY and REQUIRED arguments and set FTGL_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE("FindPackageHandleStandardArgs")
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(FTGL DEFAULT_MSG FTGL_LIBRARY FTGL_INCLUDE_DIR)
+
+MARK_AS_ADVANCED(FTGL_LIBRARY FTGL_INCLUDE_DIR)
+
diff --git a/cmake/config.h b/cmake/config.h
new file mode 100644
index 0000000..615e9c3
--- /dev/null
+++ b/cmake/config.h
@@ -0,0 +1,9 @@
+#pragma once
+
+
+#if defined ( WIN32 )
+ #define __FUNC__ __FUNCTION__
+#else
+ #define __FUNC__ __func__
+#endif
+