'Cannot find mysql.h file while i was trying to connect mysql on Clion

I have already put libmysql.lib and libmysql.dll files in cmake-build-debug folder enter image description here

and written my CMakeLists.txt like this

\`cmake_minimum_required(VERSION 3.21)


project(Project_Demo)

set(CMAKE_CXX_STANDARD 14)

include_directories(“C:\\Program Files\\MySQL\\MySQL Server 8.0\\include”)


link_directories(“C:\\Program Files\\MySQL\\MySQL Server 8.0\\lib”)


link_libraries(libmysql)

add_executable(Project_Demo Demo.cpp)

target_link_libraries(Project_Demo libmysql)\`.

However, I still can't find the mysql headfiles.

I search on Google but can't find the answer. I am not a native English speaker, so I apologise if I have any grammer or spelling mistakes above.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source