reflect: use xo_add_shared_library() + misc.

This commit is contained in:
Roland Conybeare 2023-09-27 19:42:52 -04:00
commit 94d77bf809
2 changed files with 1 additions and 17 deletions

View file

@ -29,10 +29,8 @@ add_code_coverage_all_targets(EXCLUDE /nix/store/* ${PROJECT_SOURCE_DIR}/utest/*
# ----------------------------------------------------------------
# c++ settings
set(XO_PROJECT_NAME reflect)
set(PROJECT_CXX_FLAGS "")
#set(PROJECT_CXX_FLAGS "-fconcepts-diagnostics-depth=2")
add_definitions(${PROJECT_CXX_FLAGS})
xo_toplevel_compile_options()

View file

@ -3,21 +3,7 @@
set(SELF_LIBRARY_NAME reflect)
set(SELF_SOURCE_FILES TypeDescr.cpp TypeDescrExtra.cpp TaggedRcptr.cpp atomic/AtomicTdx.cpp pointer/PointerTdx.cpp vector/VectorTdx.cpp struct/StructTdx.cpp struct/StructMember.cpp init_reflect.cpp)
# build shared library 'reflect'
add_library(${SELF_LIBRARY_NAME} SHARED ${SELF_SOURCE_FILES})
set_target_properties(${SELF_LIBRARY_NAME}
PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1)
# ----------------------------------------------------------------
# all the errors+warnings!
#
#target_compile_options(${SELF_LIBRARY_NAME} PRIVATE -Werror -Wall -Wextra)
xo_compile_options(${SELF_LIBRARY_NAME})
xo_include_options2(${SELF_LIBRARY_NAME})
xo_install_library2(${SELF_LIBRARY_NAME})
xo_add_shared_library(${SELF_LIBRARY_NAME} ${PROJECT_VERSION} 1 ${SELF_SOURCE_FILES})
# ----------------------------------------------------------------
# dependencies: logutil, ...