File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 80
80
endif ()
81
81
82
82
find_package (Threads )
83
+ find_package (pybind11 REQUIRED )
84
+ find_package (Python REQUIRED COMPONENTS Interpreter Development NumPy )
83
85
84
86
include_directories (${GTEST_INCLUDE_DIRS} )
85
87
@@ -93,7 +95,7 @@ set(XTENSOR_PYTHON_TESTS
93
95
)
94
96
95
97
add_executable (test_xtensor_python ${XTENSOR_PYTHON_TESTS} ${XTENSOR_PYTHON_HEADERS} )
96
- target_link_libraries (test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${PYTHON_LIBRARIES} )
98
+ target_link_libraries (test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} pybind11::module Python::NumPy )
97
99
98
100
if (DOWNLOAD_GTEST OR GTEST_SRC_DIR )
99
101
add_dependencies (test_xtensor_python gtest_main )
You can’t perform that action at this time.
0 commit comments