From 3724d436a33fa73cf450b8cbf0d0e7bf3d0b4b3d Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Fri, 17 Jun 2016 13:45:57 +0200 Subject: [PATCH] Move gl2ps.h to its own subdir --- graf3d/gl/CMakeLists.txt | 7 +++---- graf3d/gl/Module.mk | 7 +++++++ graf3d/gl/src/{ => gl2ps}/gl2ps.h | 0 3 files changed, 10 insertions(+), 4 deletions(-) rename graf3d/gl/src/{ => gl2ps}/gl2ps.h (100%) diff --git a/graf3d/gl/CMakeLists.txt b/graf3d/gl/CMakeLists.txt index 47e71b309f09f..5aeb190a7bdac 100644 --- a/graf3d/gl/CMakeLists.txt +++ b/graf3d/gl/CMakeLists.txt @@ -5,19 +5,18 @@ include_directories(${OPENGL_INCLUDE_DIR} ${FTGL_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS}) ROOT_GLOB_HEADERS(headers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/inc ${CMAKE_CURRENT_SOURCE_DIR}/inc/*.h) -list(REMOVE_ITEM headers gl2ps.h CsgOps.h TGLIncludes.h TGLWSIncludes.h +list(REMOVE_ITEM headers CsgOps.h TGLIncludes.h TGLWSIncludes.h TGLMarchingCubes.h TKDEAdapter.h TGL5DPainter.h TKDEFGT.h TGLIsoMesh.h) -set (installoptions OPTIONS REGEX gl2ps.h EXCLUDE) ROOT_GLOB_SOURCES(sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cxx) if(WIN32 OR cocoa) list(REMOVE_ITEM headers TX11GL.h) list(REMOVE_ITEM sources TX11GL.cxx) - set(installoptions ${installoptions} REGEX TX11GL.h EXCLUDE) + set(installoptions OPTIONS REGEX "TX11GL" EXCLUDE) endif() if(builtin_gl2ps) - include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/inc) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/gl2ps) else() list(REMOVE_ITEM sources gl2ps.cxx) include_directories(${GL2PS_INCLUDE_DIRS}) diff --git a/graf3d/gl/Module.mk b/graf3d/gl/Module.mk index e56b37b3d0305..c3fb22ca23dd6 100644 --- a/graf3d/gl/Module.mk +++ b/graf3d/gl/Module.mk @@ -42,6 +42,13 @@ GLH1 := $(MODDIRI)/CsgOps.h \ # Used by rootcint GLH2 := $(filter-out $(GLH1), $(GLH)) +ifeq ($(BUILTINGL2PS),yes) +GL2PSFLAGS := -I$(MODDIRS)/gl2ps +else() +GLS := $(filter-out $(MODDIRS)/gl2ps.cxx, $(GLS)) +GL2PSFLAGS := $(GL2PSINCDIR:%=-I%) +endif() + ifneq ($(OPENGLLIB),) GLLIBS := $(OPENGLLIBDIR) $(OPENGLULIB) $(OPENGLLIB) \ $(XLIBS) -lm diff --git a/graf3d/gl/src/gl2ps.h b/graf3d/gl/src/gl2ps/gl2ps.h similarity index 100% rename from graf3d/gl/src/gl2ps.h rename to graf3d/gl/src/gl2ps/gl2ps.h