edrosten / libcvd

libcvd - efficient and easy to use C++ computer vision library.
Other
238 stars 103 forks source link

Change output_name to cvd in CMakeLists.txt #49

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello, When installing libCVD with CMake on a Linux system, the library is exported as "libCVD.a". It is currently not found by CVDConfig.cmake, which looks for a library bearing the name "libcvd.*" .

One fix for this is to add set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "cvd") to CMakeLists.txt, to force the library name to libcvd.

Best regards

SadPencil commented 3 years ago

I have encountered this problem, too. But the difference is that the library name is libcvd.a. So, changing the library name to cvd from CVD helps.

At file libcvd/examples/CMakeLists.txt:

add_executable(colourmaps colourmaps.cc)
target_link_libraries(colourmaps PRIVATE cvd)
add_executable(distance_transform distance_transform.cc)
target_link_libraries(distance_transform PRIVATE cvd)