aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/CMakeLists.txt
blob: 4b4be199c31583e72acd03d3b99053f197f03871 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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(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)