mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
26 lines
530 B
CMake
26 lines
530 B
CMake
if(WITH_TLS)
|
|
add_executable(mosquitto_passwd
|
|
mosquitto_passwd.c
|
|
get_password.c get_password.h
|
|
)
|
|
|
|
target_include_directories(mosquitto_passwd PRIVATE
|
|
"${mosquitto_SOURCE_DIR}"
|
|
"${mosquitto_SOURCE_DIR}/common"
|
|
"${mosquitto_SOURCE_DIR}/include"
|
|
"${mosquitto_SOURCE_DIR}/lib"
|
|
"${mosquitto_SOURCE_DIR}/src"
|
|
)
|
|
|
|
target_link_libraries(mosquitto_passwd
|
|
PRIVATE
|
|
common-options
|
|
libmosquitto_common
|
|
OpenSSL::SSL
|
|
)
|
|
|
|
install(TARGETS mosquitto_passwd
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
)
|
|
endif()
|