mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Refactoring RTABMapConfig.cmake with targets (#904)
* 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
This commit is contained in:
@@ -1,26 +1,7 @@
|
||||
|
||||
SET(SRC_FILES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
SET(INCLUDE_DIRS
|
||||
${PCL_INCLUDE_DIRS}
|
||||
${PROJECT_SOURCE_DIR}/utilite/include
|
||||
)
|
||||
|
||||
SET(LIBRARIES
|
||||
${PCL_LIBRARIES}
|
||||
)
|
||||
|
||||
add_definitions(${PCL_DEFINITIONS})
|
||||
|
||||
# Make sure the compiler can find include files from our library.
|
||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||
|
||||
# Add binary called "consoleApp" that is built from the source file "main.cpp".
|
||||
# The extension is automatically found.
|
||||
ADD_EXECUTABLE(extractObject ${SRC_FILES})
|
||||
TARGET_LINK_LIBRARIES(extractObject rtabmap_utilite ${LIBRARIES})
|
||||
ADD_EXECUTABLE(extractObject main.cpp)
|
||||
TARGET_LINK_LIBRARIES(extractObject rtabmap_core)
|
||||
|
||||
SET_TARGET_PROPERTIES( extractObject
|
||||
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-extractObject)
|
||||
|
||||
Reference in New Issue
Block a user