CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. cmake_minimum_required(VERSION 2.8.1)
  2. project(mumsi)
  3. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  4. INCLUDE(FindPkgConfig)
  5. find_package(Boost COMPONENTS system regex REQUIRED)
  6. find_package(PkgConfig REQUIRED)
  7. pkg_check_modules(PJSIP "libpjproject")
  8. pkg_check_modules(LOG4CPP "log4cpp")
  9. add_definitions(${PJSIP_CFLAGS})
  10. add_definitions(${LOG4CPP_CFLAGS})
  11. include_directories(${PJSIP_INCLUDE_DIRS})
  12. include_directories(${LOG4CPP_INCLUDE_DIRS})
  13. include_directories(../mumlib/include)
  14. link_directories(../mumlib/build)
  15. set(SOURCE_FILES
  16. PjsuaCommunicator.cpp
  17. PjsuaCommunicator.hpp
  18. MumbleCommunicator.cpp
  19. MumbleCommunicator.hpp
  20. MumbleChannelJoiner.cpp
  21. MumbleChannelJoiner.hpp
  22. Configuration.cpp
  23. Configuration.hpp
  24. IncomingConnectionValidator.cpp
  25. IncomingConnectionValidator.hpp
  26. AudioFramesMixer.hpp
  27. AudioFramesMixer.cpp)
  28. add_executable(mumsi ${SOURCE_FILES} main.cpp)
  29. target_link_libraries(mumsi ${PJSIP_LIBRARIES})
  30. target_link_libraries(mumsi ${LOG4CPP_LIBRARIES})
  31. target_link_libraries(mumsi ${Boost_LIBRARIES})
  32. target_link_libraries(mumsi mumlib)