CMakeLists.txt 444 B

123456789101112131415161718
  1. cmake_minimum_required(VERSION 3.1)
  2. project(mumsi)
  3. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  4. INCLUDE(FindPkgConfig)
  5. find_package(PkgConfig REQUIRED)
  6. pkg_check_modules(OPUS "opus")
  7. include_directories(${OPUS_INCLUDE_DIRS})
  8. include_directories(libmumble)
  9. link_directories(libmumble)
  10. set(SOURCE_FILES main.cpp)
  11. add_executable(mumsi ${SOURCE_FILES})
  12. target_link_libraries(mumsi ${OPUS_LIBRARIES})
  13. target_link_libraries(mumsi mumble)