mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-13 15:00:21 +08:00
fix bigobj under MSVC, fix yaml-cpp link. (#957)
This commit is contained in:
@@ -106,6 +106,7 @@ if(MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP${N}")
|
||||
endif()
|
||||
endif()
|
||||
add_compile_options("/bigobj")
|
||||
endif()
|
||||
|
||||
# [Eclipse] Automatic Discovery of Include directories (Optional, but handy)
|
||||
|
||||
@@ -45,11 +45,11 @@ SET(LIBRARIES
|
||||
${YAML_CPP_LIBRARIES}
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS} yaml-cpp)
|
||||
|
||||
ADD_EXECUTABLE(euroc_dataset main.cpp)
|
||||
|
||||
TARGET_LINK_LIBRARIES(euroc_dataset ${LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES(euroc_dataset ${LIBRARIES} yaml-cpp)
|
||||
|
||||
SET_TARGET_PROPERTIES( euroc_dataset
|
||||
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-euroc_dataset)
|
||||
|
||||
Reference in New Issue
Block a user