mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05:00
add include directories for config.h
this is temporary, will be wrapped up in a function soon.
This commit is contained in:
1 parent
a6c2b8fb45
commit
a4da31a3c0
1 file changed
+3
@@ -638,6 +638,7 @@ macro(opm-simulators_targets_hook)
|
||||
|
||||
add_library(moduleVersion OBJECT opm/simulators/utils/moduleVersion.cpp)
|
||||
opm_add_target_options(TARGET moduleVersion)
|
||||
target_include_directories(moduleVersion BEFORE PRIVATE ${PROJECT_BINARY_DIR})
|
||||
|
||||
# Strictly we only depend on the update-version target,
|
||||
# but this is not exposed in a super-build.
|
||||
@@ -645,6 +646,7 @@ macro(opm-simulators_targets_hook)
|
||||
|
||||
add_library(MainDispatchDynamic OBJECT opm/simulators/flow/MainDispatchDynamic.cpp)
|
||||
simulators_add_target_options(TARGET MainDispatchDynamic)
|
||||
target_include_directories(MainDispatchDynamic BEFORE PRIVATE ${PROJECT_BINARY_DIR})
|
||||
|
||||
target_sources(test_outputdir PRIVATE $<TARGET_OBJECTS:moduleVersion>)
|
||||
target_sources(test_equil PRIVATE $<TARGET_OBJECTS:moduleVersion>)
|
||||
@@ -694,6 +696,7 @@ macro(opm-simulators_targets_hook)
|
||||
foreach(OBJ ${COMMON_MODELS} ${FLOW_MODELS} ${FLOW_VARIANT_MODELS})
|
||||
add_library(flow_lib${OBJ} OBJECT flow/flow_${OBJ}.cpp)
|
||||
target_link_libraries(flow_lib${OBJ} PRIVATE opmcommon)
|
||||
target_include_directories(flow_lib${OBJ} BEFORE PRIVATE ${PROJECT_BINARY_DIR})
|
||||
simulators_add_target_options(TARGET flow_lib${OBJ})
|
||||
list(APPEND FLOW_TGTS $<TARGET_OBJECTS:flow_lib${OBJ}>)
|
||||
list(APPEND FLOWMODELS_PREFIXED flow_${OBJ})
|
||||
|
||||
Reference in new issue
Block a user