Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.6)
- #General info
- project(Test-Sip VERSION 2.5.0)
- #Set the compilers to use for c++ and c to be g++ and gcce for arm
- set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
- set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
- #Release or Debug build?
- if(NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE Release)
- endif()
- #Compile Flags
- set(CMAKE_CXX_FLAGS "-Wall -fmessage-length=0 -O0 -g3 -L/home/inhinias/Desktop/SIP/sip-test/lib")
- #set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3")
- #set(CMAKE_CXX_FLAGS_RELEASE "-O3")
- add_definitions(-DPJ_IS_LITTLE_ENDIAN=1)
- add_definitions(-DPJ_IS_BIG_ENDIAN=0)
- add_executable(sip ../demo.cpp)
- target_include_directories(sip PUBLIC ../include)
- #file(GLOB_RECURSE sip_SOURCES "./lib/*.so")
- set(sip_SOURCES pjsua2
- pjsua
- pjsip-ua
- pjsip-simple
- pjsip
- pjmedia-codec
- pjmedia
- pjmedia-videodev
- pjmedia-audiodev
- pjnath
- pjlib-util
- opus
- uuid
- pj
- #ssl
- #crypto
- #m
- #z
- #rt
- srtp
- #pthread
- portaudio
- asound)
- #Link all the files to it
- target_link_libraries(sip ${sip_SOURCES})
- add_custom_command(TARGET sip
- POST_BUILD
- COMMAND python3 uploadAfterMake.py)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement