CMakeLists.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. cmake_minimum_required(VERSION 3.4.1)
  2. #project(tinyWRAP c cxx)
  3. include_directories(tinySAK/src)
  4. file(GLOB sak_src tinySAK/src/*.c)
  5. include_directories(tinyNET/src)
  6. file(GLOB net_src tinyNET/src/*.c tinyNET/src/*/*.c)
  7. include_directories(tinyHTTP/include)
  8. file(GLOB http_src tinyHTTP/src/*.c tinyHTTP/src/*/*.c)
  9. include_directories(tinySIP/include)
  10. file(GLOB sip_src tinySIP/src/*.c tinySIP/src/*/*.c)
  11. include_directories(tinyDAV/include)
  12. file(GLOB dav_src tinyDAV/src/*.c tinyDAV/src/*/*.c tinyDAV/src/*/*/*.c)
  13. include_directories(tinySDP/include)
  14. file(GLOB sdp_src tinySDP/src/*.c tinySDP/src/*/*.c)
  15. include_directories(tinyMEDIA/include)
  16. file(GLOB media_src tinyMEDIA/src/*.c tinyMEDIA/src/*/*.c)
  17. include_directories(tinyXCAP/include)
  18. file(GLOB xcap_src tinyXCAP/src/*.c tinyXCAP/src/*/*.c)
  19. include_directories(tinySMS/include)
  20. file(GLOB sms_src tinySMS/src/*.c tinySMS/src/*/*.c)
  21. include_directories(tinyMSRP/include)
  22. file(GLOB msrp_src tinyMSRP/src/*.c tinyMSRP/src/*/*.c)
  23. include_directories(tinyRTP/include)
  24. file(GLOB rtp_src tinyRTP/src/*.c tinyRTP/src/*/*.c)
  25. include_directories(tinyBFCP/include)
  26. file(GLOB bfcp_src tinyBFCP/src/*.c tinyBFCP/src/*/*.c)
  27. include_directories(tinyIPSec/src)
  28. file(GLOB ipsec_src tinyIPSec/src/*.c tinyIPSec/src/*/*.c)
  29. include_directories(tinySIGCOMP/src)
  30. file(GLOB sigcomp_src tinySIGCOMP/src/*.c tinySIGCOMP/src/*/*.c)
  31. include_directories(tinySIGCOMP/src)
  32. file(GLOB sigcomp_src tinySIGCOMP/src/*.c tinySIGCOMP/src/*/*.c)
  33. include_directories(bindings/_common)
  34. include_directories(bindings/java/android)
  35. file(GLOB bindings_common bindings/_common/*.cxx)
  36. file(GLOB bindings_common_java_android bindings/_common/java/android/*.cxx)
  37. add_library(
  38. tinyWRAP
  39. SHARED
  40. ${sak_src}
  41. ${net_src}
  42. ${http_src}
  43. ${sip_src}
  44. ${dav_src}
  45. ${sdp_src}
  46. ${media_src}
  47. ${xcap_src}
  48. ${sms_src}
  49. ${msrp_src}
  50. ${rtp_src}
  51. ${bfcp_src}
  52. ${ipsec_src}
  53. ${sigcomp_src}
  54. ${bindings_common}
  55. ${bindings_common_java_android}
  56. )
  57. find_library(log-lib log)
  58. target_link_libraries(tinyWRAP ${log-lib})