Warning, /libraries/qca/plugins/qca-cyrus-sasl/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 if(WITH_cyrus-sasl_PLUGIN STREQUAL "yes") 0002 find_package(Sasl2 REQUIRED) 0003 else() 0004 find_package(Sasl2) 0005 endif() 0006 0007 if(SASL2_FOUND) 0008 enable_plugin("cyrus-sasl") 0009 0010 set(QCA_SASL_SOURCES qca-cyrus-sasl.cpp) 0011 include_directories( ${SASL2_INCLUDE_DIR} ) 0012 add_library(qca-cyrus-sasl ${PLUGIN_TYPE} ${QCA_SASL_SOURCES}) 0013 0014 if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE") 0015 set_property(TARGET qca-cyrus-sasl PROPERTY SUFFIX ".dylib") 0016 endif() 0017 0018 target_link_libraries(qca-cyrus-sasl Qt${QT_MAJOR_VERSION}::Core ${QCA_LIB_NAME} ${SASL2_LIBRARIES}) 0019 0020 if(NOT DEVELOPER_MODE) 0021 install(TARGETS qca-cyrus-sasl 0022 LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" 0023 ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" 0024 RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") 0025 0026 install_pdb(qca-cyrus-sasl ${QCA_CRYPTO_INSTALL_DIR}) 0027 endif() 0028 else() 0029 disable_plugin("cyrus-sasl") 0030 endif()