mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
146 lines
3.1 KiB
CMake
146 lines
3.1 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(LibRender)
|
|
|
|
|
|
# Use our strict compile flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}")
|
|
|
|
# For now, remove pedantic flag for OSX since it clashes with glew
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
string(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
endif()
|
|
|
|
|
|
include_directories(../LibCore)
|
|
include_directories(../LibGeometry)
|
|
include_directories(glew)
|
|
|
|
|
|
set(CEE_HEADER_FILES
|
|
cvfBufferObjectManaged.h
|
|
cvfCamera.h
|
|
cvfDrawable.h
|
|
cvfDrawableGeo.h
|
|
cvfDrawableText.h
|
|
cvfDrawableVectors.h
|
|
cvfFixedAtlasFont.h
|
|
cvfFont.h
|
|
cvfFontManager.h
|
|
cvfFramebufferObject.h
|
|
cvfGeometryBuilderDrawableGeo.h
|
|
cvfGlyph.h
|
|
cvfHitDetail.h
|
|
cvfLegendScalarMapper.h
|
|
cvfLibRender.h
|
|
cvfMatrixState.h
|
|
cvfOglRc.h
|
|
cvfOpenGL.h
|
|
cvfOpenGLCapabilities.h
|
|
cvfOpenGLContext.h
|
|
cvfOpenGLContextGroup.h
|
|
cvfOpenGLResourceManager.h
|
|
cvfOpenGLTypes.h
|
|
cvfOverlayAxisCross.h
|
|
cvfOverlayColorLegend.h
|
|
cvfOverlayItem.h
|
|
cvfOverlayTextBox.h
|
|
cvfPrimitiveSet.h
|
|
cvfPrimitiveSetDirect.h
|
|
cvfPrimitiveSetIndexedUInt.h
|
|
cvfPrimitiveSetIndexedUIntScoped.h
|
|
cvfPrimitiveSetIndexedUShort.h
|
|
cvfPrimitiveSetIndexedUShortScoped.h
|
|
cvfRenderbufferObject.h
|
|
cvfRenderState.h
|
|
cvfRenderStateSet.h
|
|
cvfRenderStateTracker.h
|
|
cvfRenderState_FF.h
|
|
cvfSampler.h
|
|
cvfScalarMapper.h
|
|
cvfScalarMapperContinuousLog.h
|
|
cvfScalarMapperContinuousLinear.h
|
|
cvfScalarMapperDiscreteLinear.h
|
|
cvfScalarMapperDiscreteLog.h
|
|
cvfScalarMapperUniformLevels.h
|
|
cvfShader.h
|
|
cvfShaderProgram.h
|
|
cvfShaderProgramGenerator.h
|
|
cvfShaderSourceProvider.h
|
|
cvfShaderSourceRepository.h
|
|
cvfShaderSourceRepositoryFile.h
|
|
cvfShaderSourceStrings.h
|
|
cvfTextDrawer.h
|
|
cvfTexture.h
|
|
cvfTexture2D_FF.h
|
|
cvfTextureImage.h
|
|
cvfUniform.h
|
|
cvfUniformSet.h
|
|
cvfVertexAttribute.h
|
|
cvfVertexBundle.h
|
|
cvfViewport.h
|
|
)
|
|
|
|
set(CEE_SOURCE_FILES
|
|
cvfBufferObjectManaged.cpp
|
|
cvfCamera.cpp
|
|
cvfDrawable.cpp
|
|
cvfDrawableGeo.cpp
|
|
cvfDrawableVectors.cpp
|
|
cvfDrawableText.cpp
|
|
cvfFramebufferObject.cpp
|
|
cvfFixedAtlasFont.cpp
|
|
cvfFont.cpp
|
|
cvfFontManager.cpp
|
|
cvfGeometryBuilderDrawableGeo.cpp
|
|
cvfGlyph.cpp
|
|
cvfHitDetail.cpp
|
|
#cvfLegendScalarMapper.cpp
|
|
cvfMatrixState.cpp
|
|
cvfOglRc.cpp
|
|
cvfOpenGLCapabilities.cpp
|
|
cvfOpenGLContext.cpp
|
|
cvfOpenGLContextGroup.cpp
|
|
cvfOpenGLResourceManager.cpp
|
|
cvfOpenGL.cpp
|
|
cvfOverlayAxisCross.cpp
|
|
cvfOverlayColorLegend.cpp
|
|
cvfOverlayTextBox.cpp
|
|
cvfPrimitiveSet.cpp
|
|
cvfPrimitiveSetDirect.cpp
|
|
cvfPrimitiveSetIndexedUInt.cpp
|
|
cvfPrimitiveSetIndexedUShort.cpp
|
|
cvfPrimitiveSetIndexedUIntScoped.cpp
|
|
cvfPrimitiveSetIndexedUShortScoped.cpp
|
|
cvfRenderbufferObject.cpp
|
|
cvfRenderState.cpp
|
|
cvfRenderState_FF.cpp
|
|
cvfRenderStateSet.cpp
|
|
cvfRenderStateTracker.cpp
|
|
cvfScalarMapper.cpp
|
|
cvfScalarMapperContinuousLog.cpp
|
|
cvfScalarMapperContinuousLinear.cpp
|
|
cvfScalarMapperDiscreteLinear.cpp
|
|
cvfScalarMapperDiscreteLog.cpp
|
|
cvfScalarMapperUniformLevels.cpp
|
|
cvfSampler.cpp
|
|
cvfShader.cpp
|
|
cvfShaderSourceProvider.cpp
|
|
cvfShaderProgram.cpp
|
|
cvfShaderProgramGenerator.cpp
|
|
cvfShaderSourceRepository.cpp
|
|
cvfShaderSourceRepositoryFile.cpp
|
|
cvfTextDrawer.cpp
|
|
cvfTexture.cpp
|
|
cvfTexture2D_FF.cpp
|
|
cvfTextureImage.cpp
|
|
cvfUniform.cpp
|
|
cvfUniformSet.cpp
|
|
cvfVertexAttribute.cpp
|
|
cvfVertexBundle.cpp
|
|
cvfViewport.cpp
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
|
|