CPP calls Python under clion. How to configure it? python library has been added to cmake. It was possible to use C before, but it is not possible to use CPP now.

cmake file

cmake_minimum_required(VERSION 3.13)
project(server)

set(CMAKE_CXX_STANDARD 14)

add_executable(server main.cpp HttpRequest.h HttpServer.h ThreadPool.h)

find_package(PythonLibs  REQUIRED)

include_directories(${PYTHON_INCLUDE_DIRS})

target_link_libraries(${PROJECT_NAME} ${PYTHON_LIBIARIES})

find_package(Threads)
target_link_libraries (${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT})

compile error

/home/tak/CLionProjects/server/main.cpp:8: undefined reference to `Py_Initialize"
/home/tak/CLionProjects/server/main.cpp:9: undefined reference to `PyRun_SimpleStringFlags"
/home/tak/CLionProjects/server/main.cpp:10: undefined reference to `PyRun_SimpleStringFlags"
/home/tak/CLionProjects/server/main.cpp:12: undefined reference to `PyImport_ImportModule"
/home/tak/CLionProjects/server/main.cpp:13: undefined reference to `PyObject_GetAttrString"
/home/tak/CLionProjects/server/main.cpp:14: undefined reference to `PyTuple_New"
/home/tak/CLionProjects/server/main.cpp:15: undefined reference to `Py_BuildValue"
/home/tak/CLionProjects/server/main.cpp:15: undefined reference to `PyTuple_SetItem"
/home/tak/CLionProjects/server/main.cpp:16: undefined reference to `PyEval_CallObjectWithKeywords"
/home/tak/CLionProjects/server/main.cpp:17: undefined reference to `PyArg_Parse"
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bc3aa0-2f9f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bc3aa0-2f9f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?