Files
ResInsight/ApplicationLibCode/ProjectDataModel/WellEvents/CMakeLists_files.cmake
T
Magne Sjaastad d345599f2f #14912: Define well event State AppEnum setUp next to the shared enum
RimWellEventPerf::State and RimWellEventValve::State are aliases for
RimWellEventEnums::State, but the AppEnum setUp() specialization was
declared in both class headers and defined in RimWellEventPerf.cpp.
The Linux unity build failed to link with an undefined reference to
caf::AppEnum<RimWellEventEnums::State>::setUp().

Declare the specialization in RimWellEventEnums.h and define it in the
new RimWellEventEnums.cpp, so all users see a single declaration and
there is a single definition.
2026-10-27 10:05:02 +01:00

20 lines
889 B
CMake

set(SOURCE_GROUP_SOURCE_FILES
${CMAKE_CURRENT_LIST_DIR}/RimWellEvent.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventEnums.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventPerf.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventRawText.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventInsertDate.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventValve.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventSegment.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventState.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventType.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventWellSpec.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventControl.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventKeyword.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventKeywordItem.cpp
${CMAKE_CURRENT_LIST_DIR}/RimKeywordEvent.cpp
${CMAKE_CURRENT_LIST_DIR}/RimWellEventTimeline.cpp
)
list(APPEND CODE_SOURCE_FILES ${SOURCE_GROUP_SOURCE_FILES})