Commit c6a5f3547dbe66a1b27398b92d08f6cbcee79bad

Richard Ulrich 2012-06-22T00:08:43

added the cmake folder

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
+