@@ -23,6 +23,26 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
23
23
24
24
set (XEUS_CPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
25
25
26
+ # Install xeus-cpp tag files
27
+ set (XEUS_CPP_DATA_DIR "share/xeus-cpp" CACHE STRING "xeus-cpp data directory" )
28
+ set (XCPP_TAGFILES_DIR ${CMAKE_CURRENT_SOURCE_DIR} /share/xeus-cpp/tagfiles )
29
+ install (DIRECTORY ${XCPP_TAGFILES_DIR}
30
+ DESTINATION ${XEUS_CPP_DATA_DIR} )
31
+
32
+ set (XEUS_CPP_CONF_DIR "etc/xeus-cpp" CACHE STRING "xeus-cpp configuration directory" )
33
+ set (XCPP_TAGCONFS_DIR ${CMAKE_CURRENT_SOURCE_DIR} /etc/xeus-cpp/tags.d )
34
+ install (DIRECTORY ${XCPP_TAGCONFS_DIR}
35
+ DESTINATION ${XEUS_CPP_CONF_DIR} )
36
+
37
+ # Add definitions for the kernel to find tagfiles.
38
+ add_definitions (-DXCPP_TAGFILES_DIR= "${CMAKE_INSTALL_PREFIX} /${XEUS_CPP_DATA_DIR} /tagfiles" )
39
+ if (CMAKE_INSTALL_PREFIX STREQUAL "/usr" )
40
+ # install into /etc instead of /usr/etc
41
+ add_definitions (-DXCPP_TAGCONFS_DIR= "/${XEUS_CPP_CONF_DIR} /tags.d" )
42
+ else ()
43
+ add_definitions (-DXCPP_TAGCONFS_DIR= "${CMAKE_INSTALL_PREFIX} /${XEUS_CPP_CONF_DIR} /tags.d" )
44
+ endif ()
45
+
26
46
# Versionning
27
47
# ===========
28
48
@@ -169,6 +189,10 @@ configure_kernel("/share/jupyter/kernels/xcpp14/")
169
189
configure_kernel ("/share/jupyter/kernels/xcpp17/" )
170
190
configure_kernel ("/share/jupyter/kernels/xcpp20/" )
171
191
192
+ configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /include/xeus-cpp/xeus_cpp_tags_config.hpp.in"
193
+ "${CMAKE_CURRENT_SOURCE_DIR} /include/xeus-cpp/xeus_cpp_tags_config.hpp" )
194
+
195
+
172
196
# Source files
173
197
# ============
174
198
@@ -183,6 +207,7 @@ set(XEUS_CPP_HEADERS
183
207
include /xeus-cpp/xmagics.hpp
184
208
include /xeus-cpp/xoptions.hpp
185
209
include /xeus-cpp/xpreamble.hpp
210
+ include /xeus-cpp/xeus_cpp_tags_config.hpp
186
211
#src/xdemangle.hpp
187
212
#src/xinspect.hpp
188
213
#src/xsystem.hpp
@@ -435,33 +460,6 @@ configure_package_config_file(${PROJECT_NAME}Config.cmake.in
435
460
"${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} Config.cmake"
436
461
INSTALL_DESTINATION ${PROJECT_BINARY_DIR} )
437
462
438
- # Install xeus-cpp tag files
439
- set (XEUS_CPP_DATA_DIR "share/xeus-cpp" CACHE STRING "xeus-cpp data directory" )
440
- set (XCPP_TAGFILES_DIR ${CMAKE_CURRENT_SOURCE_DIR} /share/xeus-cpp/tagfiles )
441
- install (DIRECTORY ${XCPP_TAGFILES_DIR}
442
- DESTINATION ${XEUS_CPP_DATA_DIR} )
443
-
444
- set (XEUS_CPP_CONF_DIR "etc/xeus-cpp" CACHE STRING "xeus-cpp configuration directory" )
445
- set (XCPP_TAGCONFS_DIR ${CMAKE_CURRENT_SOURCE_DIR} /etc/xeus-cpp/tags.d )
446
- install (DIRECTORY ${XCPP_TAGCONFS_DIR}
447
- DESTINATION ${XEUS_CPP_CONF_DIR} )
448
-
449
- # Add definitions for the kernel to find tagfiles.
450
- add_definitions (-DXCPP_TAGFILES_DIR= "${CMAKE_INSTALL_PREFIX} /${XEUS_CPP_DATA_DIR} /tagfiles" )
451
- if (CMAKE_INSTALL_PREFIX STREQUAL "/usr" )
452
- # install into /etc instead of /usr/etc
453
- add_definitions (-DXCPP_TAGCONFS_DIR= "/${XEUS_CPP_CONF_DIR} /tags.d" )
454
- else ()
455
- add_definitions (-DXCPP_TAGCONFS_DIR= "${CMAKE_INSTALL_PREFIX} /${XEUS_CPP_CONF_DIR} /tags.d" )
456
- endif ()
457
-
458
- configure_file ("${CMAKE_CURRENT_SOURCE_DIR} /include/xeus-cpp/xeus_cpp_tags_config.hpp.in"
459
- "${CMAKE_CURRENT_SOURCE_DIR} /include/xeus-cpp/xeus_cpp_tags_config.hpp" )
460
-
461
- set (XEUS_CPP_HEADERS
462
- include /xeus-cpp/xeus_cpp_tags_config.hpp
463
- )
464
-
465
463
# Configure 'xeus-cppConfig.cmake.in for an install tree
466
464
set (XEUS_CPP_CONFIG_CODE "" )
467
465
configure_package_config_file (${PROJECT_NAME} Config.cmake.in
0 commit comments