mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-12 12:59:51 +08:00
* Config: Using cmake targets * fixed RTABMAP_DEPRECATED build error * fixed melodic build * cleanup * Fixed qhull exported library error * Update svg depend private * removed g2o from public interface * Fixed Windows with external project * removed some required dep * Fixed nsis error (also fixed unspecified components) * updated workflow rules
47 lines
945 B
CMake
47 lines
945 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
IF(DEFINED PROJECT_NAME)
|
|
set(internal TRUE)
|
|
ENDIF(DEFINED PROJECT_NAME)
|
|
|
|
if(NOT internal)
|
|
# external build
|
|
PROJECT( MyProject )
|
|
|
|
FIND_PACKAGE(RTABMap REQUIRED)
|
|
endif()
|
|
|
|
IF(QT4_FOUND)
|
|
QT4_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
|
ELSE()
|
|
QT5_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
|
ENDIF()
|
|
|
|
SET(srcs
|
|
main.cpp)
|
|
|
|
set(LIBRARIES "")
|
|
|
|
IF(APPLE)
|
|
FIND_LIBRARY(CoreWLAN_LIBRARY CoreWLAN)
|
|
FIND_LIBRARY(Foundation_LIBRARY Foundation)
|
|
MARK_AS_ADVANCED(CoreWLAN_LIBRARY Foundation_LIBRARY)
|
|
SET(LIBRARIES
|
|
${LIBRARIES}
|
|
${CoreWLAN_LIBRARY}
|
|
${Foundation_LIBRARY}
|
|
)
|
|
SET(srcs
|
|
${srcs}
|
|
WifiOSX.mm
|
|
)
|
|
ENDIF(APPLE)
|
|
|
|
ADD_EXECUTABLE(wifi_mapping ${srcs} ${moc_srcs})
|
|
TARGET_LINK_LIBRARIES(wifi_mapping rtabmap_gui ${LIBRARIES})
|
|
|
|
if(internal)
|
|
SET_TARGET_PROPERTIES( wifi_mapping
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-wifi_mapping)
|
|
endif(internal)
|