comparison extensions/dbg_dict_dump_json/CMakeLists.txt @ 1452:159d80986d85

Add dbg_dict_dump_json extension. This extension dumps the whole dictionary to stdout during startup, in JSON format for dict_json. TODO: it throws quite a bit of warnings
author Thomas Klausner <tk@giga.or.at>
date Thu, 27 Feb 2020 15:41:12 +0100
parents
children 75b6ec7c70b3
comparison
equal deleted inserted replaced
1451:6c3485887511 1452:159d80986d85
1 PROJECT("Dictionary dump to JSON extension" C)
2 FD_ADD_EXTENSION(dbg_dict_dump_json dbg_dict_dump_json.cc)
3
4 # sneakily uses dictionary-internal.h
5 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../libfdproto)
6
7 INCLUDE(FindPkgConfig)
8
9 # Uses JSONCPP to write JSON files
10 PKG_CHECK_MODULES(JSONCPP REQUIRED jsoncpp)
11 INCLUDE_DIRECTORIES(${JSONCPP_INCLUDE_DIR})
12 LINK_DIRECTORIES(${JSONCPP_LIBRDIR})
13 TARGET_LINK_LIBRARIES(dbg_dict_dump_json ${JSONCPP_LINK_LIBRARIES})
14
15 ####
16 ## INSTALL section ##
17
18 INSTALL(TARGETS dbg_dict_dump_json
19 LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
20 COMPONENT freeDiameter-debug-tools)
21
"Welcome to our mercurial repository"