-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (42 loc) · 1.25 KB
/
CMakeLists.txt
File metadata and controls
48 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
set( pylvarray_headers
python.hpp
pythonForwardDeclarations.hpp
pythonHelpers.hpp
numpyHelpers.hpp
PyArray.hpp
PySortedArray.hpp
PyCRSMatrix.hpp
PyFunc.hpp
PyArrayOfArrays.hpp
PyArrayOfSets.hpp
)
set( pylvarray_sources
python.cpp
pythonHelpers.cpp
numpyHelpers.cpp
PyArray.cpp
PySortedArray.cpp
PyCRSMatrix.cpp
PyFunc.cpp
PyArrayOfArrays.cpp
PyArrayOfSets.cpp
)
blt_add_library( NAME pylvarray
SOURCES ${pylvarray_sources}
HEADERS ${pylvarray_headers}
DEPENDS_ON lvarray ${lvarray_dependencies} Python3::Python Python3::NumPy
SHARED TRUE
CLEAR_PREFIX TRUE
)
target_include_directories( pylvarray
PUBLIC
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include> )
install( TARGETS pylvarray
EXPORT pylvarray
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib )
install( EXPORT pylvarray
DESTINATION share/lvarray/cmake/ )
lvarray_add_code_checks( PREFIX pylvarray )