Skip to content

Commit 6219f7f

Browse files
Automatically find and configure kernels (#70)
1 parent 6558dfd commit 6219f7f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ function(configure_kernel kernel)
7575
endforeach()
7676
endfunction()
7777

78-
configure_kernel("share/jupyter/kernels/xcpp11")
79-
configure_kernel("share/jupyter/kernels/xcpp14")
80-
configure_kernel("share/jupyter/kernels/xcpp17")
81-
configure_kernel("share/jupyter/kernels/clad-xcpp17")
82-
configure_kernel("share/jupyter/kernels/cuda-xcpp17")
83-
configure_kernel("share/jupyter/kernels/omp-xcpp17")
78+
file(GLOB _kernels LIST_DIRECTORIES true RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "share/jupyter/kernels/*")
79+
foreach(_kernel IN LISTS _kernels)
80+
message("Configure kernel: ${_kernel}")
81+
configure_kernel("${_kernel}")
82+
endforeach()
8483

8584
################
8685
# Dependencies #

0 commit comments

Comments
 (0)