Problem with including Eigen library in Clion CMake
问题 I have a problem with the Eigen library. I use Clion on Linux and my project can't find the Eigen library (I have it in a folder on my desktop). I have CMake in two configurations: First: cmake_minimum_required(VERSION 3.15) project(TestFEM) set(CMAKE_CXX_STANDARD 17) set(EIGEN_DIR "~/Desktop/eigen-3.3.7") include_directories(${EIGEN_DIR}) add_executable(TestFEM main.cpp FEM/FEM.cpp FEM/FEM.h) And second: cmake_minimum_required(VERSION 3.15) project(TestFEM) set(CMAKE_CXX_STANDARD 17) list