Skip to content

Using json

Rasbats edited this page Dec 5, 2021 · 1 revision

That is, if JavaScript_pi depends on libjsoncpp the build might fail. The remedy is then to add

add_subdirectory("libs/jsoncpp") target_link_libraries(${PACKAGE_NAME} ocpn::jsoncpp)

to the add_plugin_libraries macor in Plugin.cmake. And it actually makes sense: The plugin pulls in the libraries it needs.

Clone this wiki locally