diff options
author | Hiroshi Miura <miurahr@linux.com> | 2018-12-12 04:16:08 (GMT) |
---|---|---|
committer | Hiroshi Miura <miurahr@linux.com> | 2019-01-24 16:26:48 (GMT) |
commit | 513e77550daaac083cb13b3df53be955a7d0b429 (patch) | |
tree | 1f385549e6d31ea80fcd15ccdbd5a567e86b9990 /Tests/FindPython/NumPyOnly | |
parent | 1d02491950b0aa05d2053e7fa32b39dca31e537b (diff) | |
download | CMake-513e77550daaac083cb13b3df53be955a7d0b429.zip CMake-513e77550daaac083cb13b3df53be955a7d0b429.tar.gz CMake-513e77550daaac083cb13b3df53be955a7d0b429.tar.bz2 |
FindPython: Introduce NumPy component
Fixes: #18678
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Diffstat (limited to 'Tests/FindPython/NumPyOnly')
-rw-r--r-- | Tests/FindPython/NumPyOnly/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/FindPython/NumPyOnly/CMakeLists.txt b/Tests/FindPython/NumPyOnly/CMakeLists.txt new file mode 100644 index 0000000..a5db603 --- /dev/null +++ b/Tests/FindPython/NumPyOnly/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.1) + +project(TestNumPyOnly C) + +find_package(Python2 REQUIRED COMPONENTS NumPy) +find_package(Python3 REQUIRED COMPONENTS NumPy) + +Python2_add_library (arraytest2 MODULE ../NumPy/arraytest.c) +target_compile_definitions (arraytest2 PRIVATE PYTHON2) +target_link_libraries (arraytest2 PRIVATE Python2::NumPy) + +Python3_add_library (arraytest3 MODULE ../NumPy/arraytest.c) +target_compile_definitions (arraytest3 PRIVATE PYTHON3) +target_link_libraries (arraytest3 PRIVATE Python3::NumPy) |