Cmake seems not to find the lib libsndfile. However, it installed on my machine.
find_library(sndfile REQUIRED)
And installed :
yum list installed | grep libsnd
libsndfile.x86_64 1.0.25-11.el7 @base
libsndfile-devel.x86_64 1.0.25-11.el7 @base
The error :
CMake Error at CMakeLists.txt:65 (find_library):
Could not find sndfile using the following names:
CMakeLists.txt :
cmake_minimum_required(VERSION 3.19)
project(untitled1)
set(CMAKE_CXX_STANDARD 11)
find_library(sndfile REQUIRED)
add_executable(untitled1 main.cpp)
Main.cpp
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}