diff --git a/CMakeLists.txt b/CMakeLists.txt index b690c418..f22292f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,12 +75,11 @@ function(configure_kernel kernel) endforeach() endfunction() -configure_kernel("share/jupyter/kernels/xcpp11") -configure_kernel("share/jupyter/kernels/xcpp14") -configure_kernel("share/jupyter/kernels/xcpp17") -configure_kernel("share/jupyter/kernels/clad-xcpp17") -configure_kernel("share/jupyter/kernels/cuda-xcpp17") -configure_kernel("share/jupyter/kernels/omp-xcpp17") +file(GLOB _kernels LIST_DIRECTORIES true RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "share/jupyter/kernels/*") +foreach(_kernel IN LISTS _kernels) + message("Configure kernel: ${_kernel}") + configure_kernel("${_kernel}") +endforeach() ################ # Dependencies #