mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Enable unity build on opm-common
This commit is contained in:
parent
be23df1398
commit
b0ec2895be
@ -324,7 +324,10 @@ add_subdirectory(ThirdParty/qwt)
|
||||
if(RESINSIGHT_ENABLE_UNITY_BUILD)
|
||||
message("Cmake Unity build is enabled on : qwt")
|
||||
set_property(TARGET qwt PROPERTY UNITY_BUILD true)
|
||||
message("Cmake Unity build is enabled on : custom-opm-flowdiagnostics")
|
||||
set_property(TARGET custom-opm-flowdiagnostics PROPERTY UNITY_BUILD true)
|
||||
message("Cmake Unity build is enabled on : custom-opm-common")
|
||||
set_property(TARGET custom-opm-common PROPERTY UNITY_BUILD true)
|
||||
endif()
|
||||
|
||||
list(APPEND THIRD_PARTY_LIBRARIES
|
||||
|
18
ThirdParty/custom-opm-common/CMakeLists.txt
vendored
18
ThirdParty/custom-opm-common/CMakeLists.txt
vendored
@ -85,6 +85,24 @@ add_library(${PROJECT_NAME}
|
||||
opm-common/src/opm/io/eclipse/rst/header.cpp
|
||||
)
|
||||
|
||||
if(RESINSIGHT_ENABLE_UNITY_BUILD)
|
||||
|
||||
set(UNITY_EXCLUDE_FILES
|
||||
opm-common/src/opm/parser/eclipse/Deck/UDAValue.cpp
|
||||
opm-common/src/opm/parser/eclipse/EclipseState/Schedule/Well/WellConnections.cpp
|
||||
opm-common/src/opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQFunction.cpp
|
||||
opm-common/src/opm/parser/eclipse/EclipseState/Schedule/Well/WListManager.cpp
|
||||
opm-common/src/opm/parser/eclipse/EclipseState/Schedule/MSW/SpiralICD.cpp
|
||||
opm-common/src/opm/io/eclipse/EclOutput.cpp
|
||||
)
|
||||
|
||||
foreach(fileToExclude ${UNITY_EXCLUDE_FILES})
|
||||
set_source_files_properties(${fileToExclude}
|
||||
PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
|
||||
endforeach(fileToExclude)
|
||||
endif()
|
||||
|
||||
|
||||
find_path(BOOST_SPIRIT_INCLUDE_DIRS "boost/spirit.hpp")
|
||||
|
||||
target_link_libraries(custom-opm-common
|
||||
|
Loading…
Reference in New Issue
Block a user