mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-03 16:47:47 +08:00
fixed report tool rebuilt without qt compilation error
This commit is contained in:
@@ -3,7 +3,7 @@ set(LIBRARIES rtabmap_core)
|
|||||||
|
|
||||||
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
||||||
set(LIBRARIES ${LIBRARIES} rtabmap_gui)
|
set(LIBRARIES ${LIBRARIES} rtabmap_gui)
|
||||||
ENDIF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
ENDIF()
|
||||||
|
|
||||||
ADD_EXECUTABLE(report main.cpp)
|
ADD_EXECUTABLE(report main.cpp)
|
||||||
|
|
||||||
@@ -11,9 +11,12 @@ TARGET_LINK_LIBRARIES(report ${LIBRARIES})
|
|||||||
|
|
||||||
SET_TARGET_PROPERTIES(report PROPERTIES
|
SET_TARGET_PROPERTIES(report PROPERTIES
|
||||||
OUTPUT_NAME ${PROJECT_PREFIX}-report
|
OUTPUT_NAME ${PROJECT_PREFIX}-report
|
||||||
COMPILE_DEFINITIONS "WITH_QT"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
||||||
|
target_compile_definitions(report PRIVATE WITH_QT)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
INSTALL(TARGETS report
|
INSTALL(TARGETS report
|
||||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
||||||
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
||||||
|
|||||||
Reference in New Issue
Block a user