This is the CMakeList.txt in src directory:
ADD_EXECUTABLE(Expression ExpressionValue.cpp) INCLUDE_DIRECTORIES(/root/fengwu/codes/headfiles/expressi
From the documentation for link_directories:
The command will apply only to targets created after it is called.
For make link_directories() call work you need to move it before add_executable().
link_directories()
add_executable()