我已经在Visual Studio Community 2017上使用cmake设置了一个项目,该项目使用PCL(poinrt云库)和OpenCV。
一切正常,对于VC2017的自动完成命题期望很高的延迟,并且每次输入时,CPU的使用率都会猛增至40-50%。
我在两个库中都使用预构建的binairies,并且由于两个库的tuto而建立了我的清单:
cmake_minimum_required (VERSION 3.0)
project (RSC)
# The version number.
set (Tutorial_VERSION_MAJOR 0)
set (Tutorial_VERSION_MINOR 1)
set(OpenCV_DIR "C:/programmation/lib/opencv/build")
find_package(OpenCV REQUIRED core)
set(PCL_DIR "C:/programmation/lib/PCL 1.8.1/cmake")
find_package(PCL 1.8 REQUIRED COMPONENTS common io)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
#add_library(../
# add the executable
add_executable (RSC
main.cpp)
# add libs
target_link_libraries (RSC
${OpenCV_LIBS}
${PCL_COMMON_LIBRARIES}
${PCL_IO_LIBRARIES})
有人知道发生了什么吗?