Advertisement
jfk422

CMakeLists.txt for pjsip

Jul 23rd, 2020
1,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.20 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.6)
  2.  
  3. #General info
  4. project(Test-Sip VERSION 2.5.0)
  5.  
  6. #Set the compilers to use for c++ and c to be g++ and gcce for arm
  7. set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
  8. set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
  9.  
  10. #Release or Debug build?
  11. if(NOT CMAKE_BUILD_TYPE)
  12.   set(CMAKE_BUILD_TYPE Release)
  13. endif()
  14.  
  15. #Compile Flags
  16. set(CMAKE_CXX_FLAGS "-Wall -fmessage-length=0 -O0 -g3 -L/home/inhinias/Desktop/SIP/sip-test/lib")
  17. #set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3")
  18. #set(CMAKE_CXX_FLAGS_RELEASE "-O3")
  19.  
  20. add_definitions(-DPJ_IS_LITTLE_ENDIAN=1)
  21. add_definitions(-DPJ_IS_BIG_ENDIAN=0)
  22.  
  23. add_executable(sip ../demo.cpp)
  24. target_include_directories(sip PUBLIC ../include)
  25.  
  26. #file(GLOB_RECURSE sip_SOURCES "./lib/*.so")
  27. set(sip_SOURCES pjsua2
  28.                 pjsua
  29.                 pjsip-ua
  30.                 pjsip-simple
  31.                 pjsip
  32.                 pjmedia-codec
  33.                 pjmedia
  34.                 pjmedia-videodev
  35.                 pjmedia-audiodev
  36.                 pjnath
  37.                 pjlib-util
  38.                 opus
  39.                 uuid
  40.                 pj
  41.                 #ssl
  42.                 #crypto
  43.                 #m
  44.                 #z
  45.                 #rt
  46.                 srtp
  47.                 #pthread
  48.                 portaudio
  49.                 asound)
  50.  
  51. #Link all the files to it
  52. target_link_libraries(sip ${sip_SOURCES})
  53.  
  54. add_custom_command(TARGET sip
  55.                     POST_BUILD
  56.                     COMMAND python3 uploadAfterMake.py)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement