+ xo-printable2 + build fixes for cmake config

This commit is contained in:
Roland Conybeare 2026-01-04 23:03:18 -05:00
commit a2e75071cc
5 changed files with 29 additions and 5 deletions

View file

@ -37,12 +37,26 @@ xo_add_genfacetimpl(
OUTPUT_CPP_DIR src/object2
)
get_target_property(xo_printable2_src_dir xo-printable2 xo_srcdir)
message(STATUS "xo_printable2_src_dir=${xo_printable_src_dir}")
xo_add_genfacetimpl(
TARGET xo-object2-facetimpl-printable-float
FACET Printable
REPR Float
INPUT idl/IPrintable_DFloat.json5
OUTPUT_HPP_DIR include/xo/object2
OUTPUT_IMPL_SUBDIR .
OUTPUT_CPP_DIR src/object2
)
# ----------------------------------------------------------------
# must complete definition of expression lib before configuring examples
add_subdirectory(src/object2)
add_subdirectory(utest)
#xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
# ----------------------------------------------------------------
# docs targets depend on other library/utest/exec targets above,

View file

@ -0,0 +1,11 @@
{
mode: "implementation",
includes: [],
namespace1: "xo",
namespace2: "print",
facet_idl: "idl/Printable.json5",
brief: "provide APrintable interface for DFloat",
using_doxygen: true,
repr: "DFloat",
doc: [ "doc for something or other" ],
}

View file

@ -66,7 +66,7 @@ namespace scm {
///@}
private:
/** @defgraoup scm-sequence-any-private-methods **/
/** @defgroup scm-sequence-any-private-methods **/
///@{
[[noreturn]] static void _fatal();
@ -74,7 +74,7 @@ namespace scm {
///@}
public:
/** @defgraoup scm-sequence-any-member-vars **/
/** @defgroup scm-sequence-any-member-vars **/
///@{
static typeseq s_typeseq;

View file

@ -57,7 +57,7 @@ namespace scm {
using I = Impl;
public:
/** @defgraoup scm-sequence-xfer-member-vars **/
/** @defgroup scm-sequence-xfer-member-vars **/
///@{
/** typeseq for template parameter DRepr **/

View file

@ -16,4 +16,3 @@ xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 $
# note: deps here must also appear in cmake/xo_alloc2Config.cmake.in
xo_dependency(${SELF_LIB} xo_gc)
#xo_dependency(${SELF_LIB} indentlog)
#add_dependencies(${SELF_LIB} xo-object2-facetimpl-sequence-list)