build: + symlink-centric install

This commit is contained in:
Roland Conybeare 2023-10-19 16:52:29 -04:00
commit 5b3f712e0f

View file

@ -50,15 +50,16 @@ xo_toplevel_compile_options()
# ----------------------------------------------------------------
# output targets
set(SELF_LIB xo_pyutil)
add_library(${SELF_LIB} INTERFACE)
xo_include_headeronly_options2(${SELF_LIB})
set(SELF_SHORTNAME pyutil)
set(SELF_LIB xo_${SELF_SHORTNAME})
xo_add_headeronly_library(${SELF_LIB})
#xo_include_headeronly_options2(${SELF_LIB})
# ----------------------------------------------------------------
# standard install + provide find_package() support
xo_install_library2(${SELF_LIB})
xo_install_include_tree()
xo_install_library5(${SELF_LIB} ${SELF_SHORTNAME} ${PROJECT_NAME}Targets)
#xo_install_include_tree()
xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
# ----------------------------------------------------------------