Skip to content

Commit 085a6e7

Browse files
authored
Merge pull request #5 from Siderust/impl-formating
Add JSON serialization example and remove obsolete Doxygen files
2 parents a5821e1 + fdf3491 commit 085a6e7

6 files changed

Lines changed: 149 additions & 364 deletions

File tree

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ if(DEFINED _qtty_rpath)
144144
)
145145
endif()
146146

147+
# JSON serialization example — requires qtty-ffi built with the 'serde' feature:
148+
# cmake -B build -DQTTY_FFI_FEATURES=serde && cmake --build build
149+
add_executable(serialization examples/serialization.cpp)
150+
target_link_libraries(serialization PRIVATE qtty_cpp)
151+
if(DEFINED _qtty_rpath)
152+
set_target_properties(serialization PROPERTIES
153+
BUILD_RPATH ${_qtty_rpath}
154+
INSTALL_RPATH ${_qtty_rpath}
155+
)
156+
endif()
157+
147158
# Test executables with Google Test
148159
set(TEST_FFI_SOURCES
149160
tests/main.cpp

build-coverage/CMakeDoxyfile.in

Lines changed: 0 additions & 298 deletions
This file was deleted.

build-coverage/Doxyfile.qtty_cpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)