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"