From 67e12a9904a16f2765c33dcd75b31926691416f1 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Tue, 10 Jan 2012 02:05:59 +0000 Subject: [PATCH] Adding header files to the "freeglut" projects per e-mail from Paul Martz dated 1/9/12 at 1:22 PM git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@975 7f0cb862-5218-0410-a997-914c9d46530a --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c25947c..60f5d5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,14 @@ PROJECT(freeglut) CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +SET(FREEGLUT_HEADERS + include/GL/freeglut.h + include/GL/freeglut_ext.h + include/GL/freeglut_std.h + include/GL/glut.h +) SET(FREEGLUT_SRCS + ${FREEGLUT_HEADERS} src/freeglut_callbacks.c src/freeglut_cursor.c src/freeglut_display.c @@ -90,8 +97,7 @@ IF(NOT BUILD_SHARED_LIBS) ENDIF() INSTALL(TARGETS freeglut DESTINATION lib) -INSTALL(DIRECTORY "${CMAKE_SOURCE_DIR}/include/GL" DESTINATION include - FILES_MATCHING PATTERN "*.h") +INSTALL(FILES ${FREEGLUT_HEADERS} DESTINATION include/GL) # Optionally build demos, on by default. option( FREEGLUT_BUILD_DEMOS "Build FreeGLUT demos." ON ) -- 1.7.10.4