Cmake编译时出错:
CMake Error at CMakeLists.txt:11 (target_link_libraries):
Cannot specify link libraries for target "TestVTKInstallvtkRendering" which
is not built by this project.
CMakeLists.txt的内容是:
cmake_minimum_required(VERSION 2.8)
project(TestVTKInstall)
find_package(VTKREQUIRED)
include(${VTK_USE_FILE})
add_executable(${PROJECT_NAME}TestVTKInstall.cpp)
target_link_libraries(${PROJECT_NAME}vtkRendering vtkCommon)
求解答!!!
http://blog.csdn.net/cuihaolong/article/details/64124281
http://blog.csdn.net/u010566411/article/details/53332965
写的很清楚了,版本号不对,注意自己搭环境各个包或编译器的版本