Add optional download of binaries in build

* #10202 Download and use binaries as part of a build
This commit is contained in:
Magne Sjaastad
2023-05-01 18:44:05 +02:00
committed by GitHub
parent 3c1f0862e4
commit bb0ae9e381
3 changed files with 52 additions and 14 deletions

View File

@@ -192,6 +192,21 @@ endif()
#
list(APPEND RI_PRIVATE_INCLUDES ${RESINSIGHT_OPENVDS_API_DIR}/include)
#
# Configure include directories if opm-common.lib is downloaded and linked
# without building from source
#
if(NOT BUILD_FROM_SOURCE)
list(APPEND RI_PUBLIC_INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/custom-opm-common/opm-common
)
list(
APPEND
RI_PRIVATE_INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/custom-opm-common/generated-opm-common/include
)
endif()
#
# HDF5
#
@@ -415,6 +430,7 @@ target_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/Measurement
${ResInsight_SOURCE_DIR}/ThirdParty
${CMAKE_BINARY_DIR}/Generated
${RI_PUBLIC_INCLUDES}
)
# ##############################################################################