mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-11 10:34:55 +02:00
cmake: Ensure all targets that need cJSON have it
This commit is contained in:
parent
ab294813f5
commit
22f30a92b1
|
|
@ -16,5 +16,5 @@ if(WITH_CTRL_SHELL AND EDITLINE_FOUND)
|
|||
${mosquitto_SOURCE_DIR}/test/mock
|
||||
${mosquitto_SOURCE_DIR}/test/mock/apps/mosquitto_ctrl
|
||||
)
|
||||
target_link_libraries(ctrl_shell_mock PRIVATE GTest::gmock)
|
||||
target_link_libraries(ctrl_shell_mock PRIVATE cJSON GTest::gmock)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -25,4 +25,4 @@ target_include_directories(libmosquitto_mock
|
|||
${mosquitto_SOURCE_DIR}/test/mock
|
||||
${mosquitto_SOURCE_DIR}/test/mock/lib
|
||||
)
|
||||
target_link_libraries(libmosquitto_mock PRIVATE GTest::gmock)
|
||||
target_link_libraries(libmosquitto_mock PRIVATE cJSON GTest::gmock)
|
||||
|
|
|
|||
|
|
@ -22,4 +22,4 @@ target_include_directories(libmosquitto_common_mock
|
|||
${mosquitto_SOURCE_DIR}/test/mock
|
||||
${mosquitto_SOURCE_DIR}/test/mock/lib
|
||||
)
|
||||
target_link_libraries(libmosquitto_common_mock PRIVATE GTest::gmock)
|
||||
target_link_libraries(libmosquitto_common_mock PRIVATE cJSON GTest::gmock)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ target_include_directories(common-unit-test-header
|
|||
target_link_libraries(common-unit-test-header
|
||||
INTERFACE
|
||||
common-options
|
||||
cJSON
|
||||
CUnit::CUnit
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue