Changeset 1355:70b6067f4552 in freeDiameter for extensions/dict_json
- Timestamp:
- May 18, 2019, 6:06:01 PM (5 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/dict_json
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dict_json/CMakeLists.txt
r1333 r1355 7 7 PKG_CHECK_MODULES(JSONCPP REQUIRED jsoncpp) 8 8 PKG_CHECK_MODULES(JSON_SCHEMA REQUIRED json-schema) 9 PKG_CHECK_MODULES(PCRECPP REQUIRED libpcrecpp) 9 10 10 11 # List of source files 11 12 SET(DICT_JSON_SRC 12 13 dict_json.cc 13 dict_json_dict_schema.cc14 ${CMAKE_CURRENT_BINARY_DIR}/dict_json_dict_schema.cc 14 15 ) 15 16 … … 29 30 TARGET_LINK_LIBRARIES(dict-json-diff ${JSONCPP_LIBRARIES} ${JSON_SCHEMA_STATIC_LIBRARIES}) 30 31 32 ADD_EXECUTABLE(json-schema-to-c json-schema-to-c.cc) 33 TARGET_LINK_LIBRARIES(json-schema-to-c ${JSONCPP_LIBRARIES} ${JSON_SCHEMA_STATIC_LIBRARIES} ${PCRECPP_LIBRARIES}) 34 35 ADD_CUSTOM_COMMAND( 36 OUTPUT dict_json_dict_schema.cc 37 COMMAND json-schema-to-c ${CMAKE_CURRENT_SOURCE_DIR}/dict_json_dict_schema.json ${CMAKE_CURRENT_BINARY_DIR}/dict_json_dict_schema.cc 38 DEPENDS dict_json_dict_schema.json 39 ) 31 40 32 41 #### … … 39 48 RUNTIME DESTINATION ${INSTALL_DAEMON_SUFFIX} 40 49 COMPONENT freeDiameter-dictionary-json) 41 42 # dict_json_dict_schema.cc is created from dict_json_dict_schema.json43 # the tool for that is not yet open source, but the conversion is straightforward
Note: See TracChangeset
for help on using the changeset viewer.