CMakeLists.txt 816 B

1234567891011121314151617181920
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. set(target ql_app_websocket)
  5. add_library(${target} STATIC)
  6. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
  7. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
  8. target_include_directories(${target} PUBLIC inc ../ql_api/include ../ql_api/libwebsockets/api ../ql_api/libwebsockets/config ../ql_api/libwebsockets/inc ../ql_api/libwebsockets/inc/libwebsockets)
  9. IF(EXISTS ql_api_websocket)
  10. target_include_targets(${target} PRIVATE ql_api_websocket)
  11. ENDIF()
  12. set(ql_websocket_out ${out_lib_dir}/libql_api_websocket.a)
  13. target_sources(${target} PRIVATE
  14. websocket_demo.c
  15. )
  16. relative_glob(srcs include/*.h src/*.c inc/*.h)
  17. beautify_c_code(${target} ${srcs})