fix: exclude TopicReplayInterface and RecordReplayPlugin from release scope
- Wrap TopicReplayInterface and RecordReplayPlugin in BUILD_RTI conditional - These modules require RTI DDS which is not in release scope - Fixes missing topiceditorbase_export.h error during release builds Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 file changed
+19
-17
@@ -38,21 +38,23 @@ ADD_LIBRARY(StylePluginInterface SHARED
|
|||||||
TARGET_INCLUDE_DIRECTORIES(StylePluginInterface PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
TARGET_INCLUDE_DIRECTORIES(StylePluginInterface PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
TARGET_LINK_LIBRARIES(StylePluginInterface PUBLIC Qt6::Core)
|
TARGET_LINK_LIBRARIES(StylePluginInterface PUBLIC Qt6::Core)
|
||||||
|
|
||||||
# record_replay_plugin
|
# record_replay_plugin (requires RTI DDS)
|
||||||
ADD_LIBRARY(RecordReplayPlugin SHARED
|
if(BUILD_RTI)
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.h
|
ADD_LIBRARY(RecordReplayPlugin SHARED
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.h
|
||||||
)
|
${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.cpp
|
||||||
TARGET_INCLUDE_DIRECTORIES(RecordReplayPlugin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
)
|
||||||
TARGET_LINK_LIBRARIES(RecordReplayPlugin PUBLIC Qt6::Core)
|
TARGET_INCLUDE_DIRECTORIES(RecordReplayPlugin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
|
TARGET_LINK_LIBRARIES(RecordReplayPlugin PUBLIC Qt6::Core)
|
||||||
|
|
||||||
# Topic Replay Interface
|
# Topic Replay Interface (requires RTI DDS and TopicEditorBase)
|
||||||
ADD_LIBRARY(TopicReplayInterface SHARED
|
ADD_LIBRARY(TopicReplayInterface SHARED
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.h
|
${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.cpp
|
||||||
)
|
)
|
||||||
TARGET_INCLUDE_DIRECTORIES(TopicReplayInterface PUBLIC
|
TARGET_INCLUDE_DIRECTORIES(TopicReplayInterface PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||||
${CMAKE_BINARY_DIR}/Lts/Common/TopicEditorBase # topiceditorbase_export.h
|
${CMAKE_BINARY_DIR}/Lts/Common/TopicEditorBase # topiceditorbase_export.h
|
||||||
)
|
)
|
||||||
TARGET_LINK_LIBRARIES(TopicReplayInterface PUBLIC Qt6::Core TopicEditorBase)
|
TARGET_LINK_LIBRARIES(TopicReplayInterface PUBLIC Qt6::Core TopicEditorBase)
|
||||||
|
endif()
|
||||||
Reference in new issue
Block a user