set(SOURCE_GROUP_HEADER_FILES
    ${CMAKE_CURRENT_LIST_DIR}/RiaArgumentParser.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaDateStringParser.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaColorTables.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaColorTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaEclipseUnitTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageCompareReporter.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageFileCompare.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaLogging.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaProjectModifier.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaRegressionTest.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaImportEclipseCaseTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaQDateTimeTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellNameComparer.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaStdStringTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaInterpolationTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryAddressAnalyzer.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaSimWellBranchTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaProjectFileVersionTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaStringEncodingTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaTextStringTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaTextFileCompare.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaRegressionTestRunner.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaExtractionTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaFilePathTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaCurveMerger.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaCurveMerger.inl
    ${CMAKE_CURRENT_LIST_DIR}/RiaCurveDataTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellLogCurveMerger.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaTimeHistoryCurveResampler.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaStatisticsTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaOffshoreSphericalCoords.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedMeanCalculator.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaMedianCalculator.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedMeanCalculator.inl
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedGeometricMeanCalculator.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedHarmonicMeanCalculator.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaOptionItemFactory.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaGitDiff.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaCellDividingTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaFieldHandleTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaBoundingBoxTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellLogUnitTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellLogUnitTools.inl
    ${CMAKE_CURRENT_LIST_DIR}/RiaTimeTTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaValidRegExpValidator.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaVec3Tools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaEnsembleNameTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryStringTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaNetworkTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaOpenMPTools.h
    ${CMAKE_CURRENT_LIST_DIR}/RiaNumericalTools.h
)

set(SOURCE_GROUP_SOURCE_FILES
    ${CMAKE_CURRENT_LIST_DIR}/RiaArgumentParser.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaDateStringParser.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaColorTables.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaColorTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaEclipseUnitTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageCompareReporter.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageFileCompare.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaImageTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaLogging.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaProjectModifier.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaRegressionTest.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaImportEclipseCaseTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaQDateTimeTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellNameComparer.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaStdStringTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaInterpolationTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryAddressAnalyzer.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaSimWellBranchTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaProjectFileVersionTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaStringEncodingTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaTextStringTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaTextFileCompare.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaRegressionTestRunner.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaExtractionTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaFilePathTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaCurveMerger.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaCurveDataTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaWellLogCurveMerger.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaTimeHistoryCurveResampler.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaStatisticsTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedGeometricMeanCalculator.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedHarmonicMeanCalculator.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaOptionItemFactory.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaGitDiff.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaCellDividingTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaFieldHandleTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaBoundingBoxTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaTimeTTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaValidRegExpValidator.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaEnsembleNameTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaVec3Tools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaSummaryStringTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaNetworkTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaOpenMPTools.cpp
    ${CMAKE_CURRENT_LIST_DIR}/RiaNumericalTools.cpp
)

list(APPEND CODE_SOURCE_FILES ${SOURCE_GROUP_SOURCE_FILES})

set(QT_MOC_HEADERS ${QT_MOC_HEADERS})

source_group(
  "Application\\Tools"
  FILES ${SOURCE_GROUP_HEADER_FILES} ${SOURCE_GROUP_SOURCE_FILES}
        ${CMAKE_CURRENT_LIST_DIR}/CMakeLists_files.cmake
)
