cmake_minimum_required(VERSION 3.12)
project(GaussNewton)
set(CMAKE_CXX_STANDARD 14)
include_directories($ENV{CMAKE_INCLUDE_PATH})
add_executable(GaussNewton main.cpp)
don’t expect Clion to read bash shell variable,it’s impossible
Reference:
https://stackoverflow.com/questions/37662130/clion-or-cmake-does-not-see-environment-variable
http://mvlabat.github.io/ark-gsoc-2016/setting/up/environment/2016/05/18/lets-start-with-clion.html
https://stackoverflow.com/questions/42062245/c-program-through-clion-cannot-find-environment-variable