#2536 Build System : Remove obsolete code for cmake older than "2.8.2"

This commit is contained in:
Magne Sjaastad
2018-02-28 08:05:00 +01:00
parent ca0087eb55
commit 89c090ba24
35 changed files with 1424 additions and 1601 deletions

View File

@@ -1,92 +1,87 @@
# Use this workaround until we're on 2.8.3 on all platforms and can use CMAKE_CURRENT_LIST_DIR directly
if (${CMAKE_VERSION} VERSION_GREATER "2.8.2")
set(CEE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_DIR}/)
endif()
set (SOURCE_GROUP_HEADER_FILES
${CEE_CURRENT_LIST_DIR}RivCellEdgeEffectGenerator.h
${CEE_CURRENT_LIST_DIR}RivFaultPartMgr.h
${CEE_CURRENT_LIST_DIR}RivFaultGeometryGenerator.h
${CEE_CURRENT_LIST_DIR}RivNNCGeometryGenerator.h
${CEE_CURRENT_LIST_DIR}RivGridPartMgr.h
${CEE_CURRENT_LIST_DIR}RivTernarySaturationOverlayItem.h
${CEE_CURRENT_LIST_DIR}RivReservoirPartMgr.h
${CEE_CURRENT_LIST_DIR}RivReservoirViewPartMgr.h
${CEE_CURRENT_LIST_DIR}RivPipeGeometryGenerator.h
${CEE_CURRENT_LIST_DIR}RivReservoirFaultsPartMgr.h
${CEE_CURRENT_LIST_DIR}RivReservoirSimWellsPartMgr.h
${CEE_CURRENT_LIST_DIR}RivSourceInfo.h
${CEE_CURRENT_LIST_DIR}RivWellPathSourceInfo.h
${CEE_CURRENT_LIST_DIR}RivWellPathPartMgr.h
${CEE_CURRENT_LIST_DIR}RivWellPathsPartMgr.h
${CEE_CURRENT_LIST_DIR}RivSimWellPipesPartMgr.h
${CEE_CURRENT_LIST_DIR}RivWellHeadPartMgr.h
${CEE_CURRENT_LIST_DIR}RivResultToTextureMapper.h
${CEE_CURRENT_LIST_DIR}RivCompletionTypeResultToTextureMapper.h
${CEE_CURRENT_LIST_DIR}RivDefaultResultToTextureMapper.h
${CEE_CURRENT_LIST_DIR}RivTernaryResultToTextureMapper.h
${CEE_CURRENT_LIST_DIR}RivTextureCoordsCreator.h
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapper.h
${CEE_CURRENT_LIST_DIR}RivTernaryTextureCoordsCreator.h
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapperEffectGenerator.h
${CEE_CURRENT_LIST_DIR}RivScalarMapperUtils.h
${CEE_CURRENT_LIST_DIR}RivCellEdgeGeometryUtils.h
${CEE_CURRENT_LIST_DIR}RivPipeQuadToSegmentMapper.h
${CEE_CURRENT_LIST_DIR}RivSingleCellPartGenerator.h
${CEE_CURRENT_LIST_DIR}RivSimWellPipeSourceInfo.h
${CEE_CURRENT_LIST_DIR}RivWellSpheresPartMgr.h
${CEE_CURRENT_LIST_DIR}RivPartPriority.h
${CEE_CURRENT_LIST_DIR}RivObjectSourceInfo.h
${CEE_CURRENT_LIST_DIR}RivWellConnectionsPartMgr.h
${CEE_CURRENT_LIST_DIR}RivFishbonesSubsPartMgr.h
${CEE_CURRENT_LIST_DIR}RivTensorResultPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivCellEdgeEffectGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivFaultPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivFaultGeometryGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivNNCGeometryGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivGridPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivTernarySaturationOverlayItem.h
${CMAKE_CURRENT_LIST_DIR}/RivReservoirPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivReservoirViewPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivPipeGeometryGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivReservoirFaultsPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivReservoirSimWellsPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivSourceInfo.h
${CMAKE_CURRENT_LIST_DIR}/RivWellPathSourceInfo.h
${CMAKE_CURRENT_LIST_DIR}/RivWellPathPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivWellPathsPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivSimWellPipesPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivWellHeadPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivResultToTextureMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivCompletionTypeResultToTextureMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivDefaultResultToTextureMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivTernaryResultToTextureMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivTextureCoordsCreator.h
${CMAKE_CURRENT_LIST_DIR}/RivTernaryScalarMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivTernaryTextureCoordsCreator.h
${CMAKE_CURRENT_LIST_DIR}/RivTernaryScalarMapperEffectGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivScalarMapperUtils.h
${CMAKE_CURRENT_LIST_DIR}/RivCellEdgeGeometryUtils.h
${CMAKE_CURRENT_LIST_DIR}/RivPipeQuadToSegmentMapper.h
${CMAKE_CURRENT_LIST_DIR}/RivSingleCellPartGenerator.h
${CMAKE_CURRENT_LIST_DIR}/RivSimWellPipeSourceInfo.h
${CMAKE_CURRENT_LIST_DIR}/RivWellSpheresPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivPartPriority.h
${CMAKE_CURRENT_LIST_DIR}/RivObjectSourceInfo.h
${CMAKE_CURRENT_LIST_DIR}/RivWellConnectionsPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivFishbonesSubsPartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivTensorResultPartMgr.h
)
if (RESINSIGHT_ENABLE_PROTOTYPE_FEATURE_FRACTURES)
list (APPEND SOURCE_GROUP_HEADER_FILES
${CEE_CURRENT_LIST_DIR}RivWellFracturePartMgr.h
${CMAKE_CURRENT_LIST_DIR}/RivWellFracturePartMgr.h
)
endif()
set (SOURCE_GROUP_SOURCE_FILES
${CEE_CURRENT_LIST_DIR}RivCellEdgeEffectGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivFaultPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivNNCGeometryGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivFaultGeometryGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivGridPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivTernarySaturationOverlayItem.cpp
${CEE_CURRENT_LIST_DIR}RivReservoirFaultsPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivReservoirPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivReservoirViewPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivPipeGeometryGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivReservoirSimWellsPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivSourceInfo.cpp
${CEE_CURRENT_LIST_DIR}RivWellPathSourceInfo.cpp
${CEE_CURRENT_LIST_DIR}RivWellPathPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivWellPathsPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivSimWellPipesPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivWellHeadPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivTextureCoordsCreator.cpp
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapper.cpp
${CEE_CURRENT_LIST_DIR}RivTernaryTextureCoordsCreator.cpp
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapperEffectGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivScalarMapperUtils.cpp
${CEE_CURRENT_LIST_DIR}RivCellEdgeGeometryUtils.cpp
${CEE_CURRENT_LIST_DIR}RivPipeQuadToSegmentMapper.cpp
${CEE_CURRENT_LIST_DIR}RivSingleCellPartGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivSimWellPipeSourceInfo.cpp
${CEE_CURRENT_LIST_DIR}RivWellSpheresPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivObjectSourceInfo.cpp
${CEE_CURRENT_LIST_DIR}RivWellConnectionsPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivFishbonesSubsPartMgr.cpp
${CEE_CURRENT_LIST_DIR}RivTensorResultPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivCellEdgeEffectGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivFaultPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivNNCGeometryGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivFaultGeometryGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivGridPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTernarySaturationOverlayItem.cpp
${CMAKE_CURRENT_LIST_DIR}/RivReservoirFaultsPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivReservoirPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivReservoirViewPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivPipeGeometryGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivReservoirSimWellsPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivSourceInfo.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellPathSourceInfo.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellPathPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellPathsPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivSimWellPipesPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellHeadPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTextureCoordsCreator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTernaryScalarMapper.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTernaryTextureCoordsCreator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTernaryScalarMapperEffectGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivScalarMapperUtils.cpp
${CMAKE_CURRENT_LIST_DIR}/RivCellEdgeGeometryUtils.cpp
${CMAKE_CURRENT_LIST_DIR}/RivPipeQuadToSegmentMapper.cpp
${CMAKE_CURRENT_LIST_DIR}/RivSingleCellPartGenerator.cpp
${CMAKE_CURRENT_LIST_DIR}/RivSimWellPipeSourceInfo.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellSpheresPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivObjectSourceInfo.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellConnectionsPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivFishbonesSubsPartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivTensorResultPartMgr.cpp
)
if (RESINSIGHT_ENABLE_PROTOTYPE_FEATURE_FRACTURES)
list (APPEND SOURCE_GROUP_SOURCE_FILES
${CEE_CURRENT_LIST_DIR}RivWellFracturePartMgr.cpp
${CMAKE_CURRENT_LIST_DIR}/RivWellFracturePartMgr.cpp
)
endif()
@@ -98,4 +93,4 @@ list(APPEND CODE_SOURCE_FILES
${SOURCE_GROUP_SOURCE_FILES}
)
source_group( "ModelVisualization" FILES ${SOURCE_GROUP_HEADER_FILES} ${SOURCE_GROUP_SOURCE_FILES} ${CEE_CURRENT_LIST_DIR}CMakeLists_files.cmake )
source_group( "ModelVisualization" FILES ${SOURCE_GROUP_HEADER_FILES} ${SOURCE_GROUP_SOURCE_FILES} ${CMAKE_CURRENT_LIST_DIR}/CMakeLists_files.cmake )