From c493991df0a583dc953feb652dee32633f97fd34 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 12 Jun 2020 17:51:00 -0700 Subject: Add CMake Scripts (#759) * [skip travis] CMake: Add CMake Scripts This add CMake scripts for the CMake build system generator. * CUDA Support Achieved Fastest compile via: cmake .. -DENABLE_CUDA=ON -DCUDA_ARCH=6.0 * CMake: openPMD & QED * CMake: Dimension Support WarpX_DIMS=2,3,RZ * CCache & Out-of-Source Enable CCache when found and prevent in-root builds (in-source okay-ish). * CMake: CUDA C++ Language Minimum * Add new Files * CI: Migrate macOS to CMake * Fortran: Enable Because Transitive ... for now :) * CI: Migrate Linux ICC to CMake * CI: Verbose Make * CMake: Add Missing PSATD Sources * CMake: PSATD, Compute, Precision, Clean --- .../SpectralSolver/SpectralAlgorithms/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Source/FieldSolver/SpectralSolver/SpectralAlgorithms/CMakeLists.txt (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/CMakeLists.txt b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/CMakeLists.txt new file mode 100644 index 000000000..b80091aaf --- /dev/null +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/CMakeLists.txt @@ -0,0 +1,15 @@ +target_sources(WarpX + PRIVATE + GalileanAlgorithm.cpp + PMLPsatdAlgorithm.cpp + PsatdAlgorithm.cpp + SpectralBaseAlgorithm.cpp +) + +if(WarpX_DIMS STREQUAL RZ) + target_sources(WarpX + PRIVATE + SpectralBaseAlgorithmRZ.cpp + PsatdAlgorithmRZ.cpp + ) +endif() -- cgit v1.2.3