mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-03-24 01:04:29 +08:00
cmake: Ensure all targets that need cJSON have it
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user