Adding header files to the "freeglut" projects per e-mail from Paul Martz dated 1...
authorJohn F. Fay <johnffay@nettally.com>
Tue, 10 Jan 2012 02:05:59 +0000 (02:05 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Tue, 10 Jan 2012 02:05:59 +0000 (02:05 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@975 7f0cb862-5218-0410-a997-914c9d46530a

CMakeLists.txt

index c25947c..60f5d5d 100644 (file)
@@ -1,7 +1,14 @@
 PROJECT(freeglut)\r
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)\r
 \r
+SET(FREEGLUT_HEADERS\r
+       include/GL/freeglut.h\r
+       include/GL/freeglut_ext.h\r
+       include/GL/freeglut_std.h\r
+       include/GL/glut.h\r
+)\r
 SET(FREEGLUT_SRCS\r
+       ${FREEGLUT_HEADERS}\r
        src/freeglut_callbacks.c\r
        src/freeglut_cursor.c\r
        src/freeglut_display.c\r
@@ -90,8 +97,7 @@ IF(NOT BUILD_SHARED_LIBS)
 ENDIF()\r
 \r
 INSTALL(TARGETS freeglut DESTINATION lib)\r
-INSTALL(DIRECTORY "${CMAKE_SOURCE_DIR}/include/GL" DESTINATION include\r
-               FILES_MATCHING PATTERN "*.h")\r
+INSTALL(FILES ${FREEGLUT_HEADERS} DESTINATION include/GL)\r
 \r
 # Optionally build demos, on by default.\r
 option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." ON )\r