CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. cmake_minimum_required(VERSION 3.0.1)
  2. project(mumsi)
  3. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  4. INCLUDE(FindPkgConfig)
  5. find_package(Boost COMPONENTS system 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. ICommunicator.hpp
  21. Configuration.cpp
  22. Configuration.hpp
  23. IncomingConnectionValidator.cpp
  24. IncomingConnectionValidator.hpp)
  25. add_executable(mumsi ${SOURCE_FILES} main.cpp)
  26. target_link_libraries(mumsi ${PJSIP_LIBRARIES})
  27. target_link_libraries(mumsi ${LOG4CPP_LIBRARIES})
  28. target_link_libraries(mumsi ${Boost_LIBRARIES})
  29. target_link_libraries(mumsi mumlib)