Fixes by cmake-format

This commit is contained in:
magnesj 2021-01-22 07:22:25 +00:00 committed by Magne Sjaastad
parent e4b285c169
commit 8c424ca09b

View File

@ -355,22 +355,16 @@ endforeach()
# Generate Python code in a target that is part of ALL_BUILD and depends on # Generate Python code in a target that is part of ALL_BUILD and depends on
# ResInsight # ResInsight
if(RESINSIGHT_ENABLE_GRPC) if(RESINSIGHT_ENABLE_GRPC)
set(GENERATED_CLASSES_FILE ${CMAKE_SOURCE_DIR}/GrpcInterface/Python/rips/generated/generated_classes.py) set(GENERATED_CLASSES_FILE
${CMAKE_SOURCE_DIR}/GrpcInterface/Python/rips/generated/generated_classes.py
)
add_custom_command( add_custom_command(
OUTPUT OUTPUT ${GENERATED_CLASSES_FILE}
${GENERATED_CLASSES_FILE} COMMAND ResInsight ARGS --console --generate ${GENERATED_CLASSES_FILE}
COMMAND
ResInsight ARGS --console --generate
${GENERATED_CLASSES_FILE}
DEPENDS ResInsight DEPENDS ResInsight
COMMENT COMMENT "Generating ${GENERATED_CLASSES_FILE}")
"Generating ${GENERATED_CLASSES_FILE}" add_custom_target(RipsGeneratedPythonClasses ALL
) SOURCES ${GENERATED_CLASSES_FILE})
add_custom_target(
RipsGeneratedPythonClasses ALL
SOURCES
${GENERATED_CLASSES_FILE}
)
source_group("Source Files" ${GENERATED_CLASSES_FILE}) source_group("Source Files" ${GENERATED_CLASSES_FILE})
add_dependencies(RipsGeneratedPythonClasses ResInsight) add_dependencies(RipsGeneratedPythonClasses ResInsight)