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
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