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:
@@ -2,18 +2,21 @@
|
||||
set(LIBRARIES rtabmap_core)
|
||||
|
||||
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
||||
set(LIBRARIES ${LIBRARIES} rtabmap_gui)
|
||||
ENDIF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
||||
set(LIBRARIES ${LIBRARIES} rtabmap_gui)
|
||||
ENDIF()
|
||||
|
||||
ADD_EXECUTABLE(report main.cpp)
|
||||
|
||||
|
||||
TARGET_LINK_LIBRARIES(report ${LIBRARIES})
|
||||
|
||||
SET_TARGET_PROPERTIES(report PROPERTIES
|
||||
OUTPUT_NAME ${PROJECT_PREFIX}-report
|
||||
COMPILE_DEFINITIONS "WITH_QT"
|
||||
SET_TARGET_PROPERTIES(report PROPERTIES
|
||||
OUTPUT_NAME ${PROJECT_PREFIX}-report
|
||||
)
|
||||
|
||||
|
||||
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
|
||||
target_compile_definitions(report PRIVATE WITH_QT)
|
||||
ENDIF()
|
||||
|
||||
INSTALL(TARGETS report
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
||||
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
||||
|
||||
Reference in New Issue
Block a user