SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
-IF(APPLE)
- INCLUDE_DIRECTORIES(/opt/local/include)
- LINK_DIRECTORIES(/opt/local/lib)
-ENDIF()
-
-IF(POLARSSL)
+IF(MBEDTLS)
+ ADD_DEFINITIONS(-DHAVE_MBEDTLS)
+ SET(SSL_SRC ustream-mbedtls.c)
+ SET(SSL_LIB mbedtls mbedcrypto mbedx509 m)
+ELSEIF(POLARSSL)
ADD_DEFINITIONS(-DHAVE_POLARSSL)
SET(SSL_SRC ustream-polarssl.c)
SET(SSL_LIB polarssl m)
ADD_EXECUTABLE(ustream-example-server ustream-example-server.c)
TARGET_LINK_LIBRARIES(ustream-example-server ustream-ssl)
+ADD_EXECUTABLE(ustream-example-client ustream-example-client.c)
+TARGET_LINK_LIBRARIES(ustream-example-client ustream-ssl)
+
INSTALL(FILES ustream-ssl.h
DESTINATION include/libubox
)