diff options
Diffstat (limited to 'Source/Python/CMakeLists.txt')
-rw-r--r-- | Source/Python/CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/Python/CMakeLists.txt b/Source/Python/CMakeLists.txt index e10b8486c..4b4be199c 100644 --- a/Source/Python/CMakeLists.txt +++ b/Source/Python/CMakeLists.txt @@ -1,8 +1,24 @@ +############################################################################### +# These are the files equivalent to the primary C++ implementation - but here +# we define how they will appear in our Python module (aka Python bindings). +# foreach(D IN LISTS WarpX_DIMS) warpx_set_suffix_dims(SD ${D}) - target_sources(WarpX_${SD} + target_sources(lib_${SD} PRIVATE + # callback hooks WarpX_py.cpp + + # legacy C wrapper APIs WarpXWrappers.cpp ) + if(WarpX_PYTHON) + target_sources(pyWarpX_${SD} + PRIVATE + # pybind11 + WarpX.cpp + ) + endif() endforeach() + +add_subdirectory(Particles) |