the log wrapper in C/C++ accepts formats

This commit is contained in:
2026-03-17 13:22:44 +11:00
parent 2b3fe0630f
commit bdbd94eda2
9 changed files with 259 additions and 7 deletions

View File

@@ -23,3 +23,15 @@ target_link_libraries(pam_usercontainer PRIVATE ${RUST_STATICLIB})
# Install target
install(TARGETS pam_usercontainer DESTINATION lib/security)
# Examples: small programs demonstrating logging wrappers
set_source_files_properties(examples/logging_example.c PROPERTIES LANGUAGE CXX)
add_executable(logging_example_c examples/logging_example.c)
target_include_directories(logging_example_c PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
add_dependencies(logging_example_c rust_backend_build)
target_link_libraries(logging_example_c PRIVATE ${RUST_STATICLIB})
add_executable(logging_example_cpp examples/logging_example.cpp)
target_include_directories(logging_example_cpp PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
add_dependencies(logging_example_cpp rust_backend_build)
target_link_libraries(logging_example_cpp PRIVATE ${RUST_STATICLIB})