Код: Выделить всё
cmake_minimum_required(VERSION 3.31)
project(04_SampleMultipleLayersNeuralNetwork_cpp)
set(CMAKE_CXX_STANDARD 26)
add_executable(04_SampleMultipleLayersNeuralNetwork_cpp main.cpp)
Код: Выделить всё
cmake_minimum_required(VERSION 3.31)
project(04_SampleMultipleLayersNeuralNetwork_cpp)
set(CMAKE_CXX_STANDARD 26)
find_package(Eigen3 3.4 REQUIRED)
add_executable(04_SampleMultipleLayersNeuralNetwork_cpp main.cpp)
target_link_libraries(04_SampleMultipleLayersNeuralNetwork_cpp Eigen3::Eigen)
< /code>
Если для перезагрузки проекта Cmake он потерпит неудачу с: < /p>
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Eigen3", but
CMake did not find one.
Could not find a package configuration file provided by "Eigen3" (requested
version 3.4) with any of the following names:
Eigen3Config.cmake
eigen3-config.cmake
Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR" to a directory containing one of the above files. If "Eigen3"
provides a separate development package or SDK, be sure it has been
installed.
Подробнее здесь: https://stackoverflow.com/questions/797 ... t-in-clion