libcvd icon indicating copy to clipboard operation
libcvd copied to clipboard

Change output_name to cvd in CMakeLists.txt

Open ghost opened this issue 5 years ago • 1 comments

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

ghost avatar May 06 '19 12:05 ghost

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)

SadPencil avatar Apr 08 '21 07:04 SadPencil