I am building a project that utilizes a library that is outside of the scope of the project. I am relatively new to CMake and I can't seem to get this library to build. my code is below:
cmake_minimum_version(VERSION 3.1)
project(cameraCode VERSION 1.0.0)
add_library(camControl SHARED IMPORTED
/opt/MVS/lib/64/MVCamControl
/opt/MVS/include/MvCamControl.h)
add_executable(${PROJECT_NAME} cameraCode.cpp)
target_link_libraries(${PROJECT_NAME}
PRIVATE
camControl)
when I make this, it configures okay, but when I build it, I get this error: make[2] *** No rule to make target 'camControl-NOTFOUND', needed by 'cameraCode'. Stop.