Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > a5b0716c079a30f70425227523c3e531 > files > 1

albert-0.14.21-4.mga7.src.rpm

From 6dbc388689d19d38ee385840aff9c4b167eae6b8 Mon Sep 17 00:00:00 2001
From: Buchan Milne <bgmilne@gmail.com>
Date: Thu, 14 Jun 2018 07:55:29 +0200
Subject: [PATCH] Find and use python libraries and headers

---
 python/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 5732573..6ba7b80 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -5,6 +5,8 @@ PROJECT(python)
 FILE(GLOB_RECURSE SRC src/* metadata.json)
 
 find_package(Qt5 5.5.0 REQUIRED COMPONENTS Widgets)
+find_package(PythonLibs)
+include_directories(${PYTHON_INCLUDE_DIRS})
 add_subdirectory(pybind11)
 
 add_library(${PROJECT_NAME} SHARED ${SRC} ${PROJECT_NAME}.qrc)
@@ -14,6 +16,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE src/)
 target_link_libraries(${PROJECT_NAME}
     PUBLIC
         ${Qt5Widgets_LIBRARIES}
+        ${PYTHON_LIBRARIES}
     PRIVATE
         pybind11::embed
         albertcore
-- 
2.13.6