Cmake Clion Mac
Hello,
Does anyone have installed libraw on a macOS et use it with Clion (C++ IDE) ?
*** Cmakelists.txt ***
make_minimum_required(VERSION 3.30)
project(RawReader)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_PREFIX_PATH "/usr/opt/lib/" ${CMAKE_PREFIX_PATH})
add_executable(RawReader main.cpp)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
***
CMake Error at CMakeLists.txt:15 (find_package):
By not providing "FindLibRaw.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibRaw", but
CMake did not find one.
Could not find a package configuration file provided by "LibRaw" with any
of the following names:
LibRawConfig.cmake
libraw-config.cmake
Add the installation prefix of "LibRaw" to CMAKE_PREFIX_PATH or set
"LibRaw_DIR" to a directory containing one of the above files. If "LibRaw"
provides a separate development package or SDK, be sure it has been
installed.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
find_package(LibRaw REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE LibRaw::LibRaw)
AI solutions don't ... work..
Thanks for helping :-)
Recent comments