Skip to content

Instantly share code, notes, and snippets.

@aisouard
Last active August 29, 2015 14:22
Show Gist options
  • Save aisouard/043c67b63bbd3cf5f75c to your computer and use it in GitHub Desktop.
Save aisouard/043c67b63bbd3cf5f75c to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.2)
project(libpeeracle)
add_definitions(-DWEBRTC_LINUX -DWEBRTC_POSIX -DPOSIX -DBUILD_LIBPEERACLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
file(GLOB SOURCE_FILES
peeracle/**/**/*.cc
peeracle/**/**/*.h
peeracle/**/*.cc
peeracle/**/*.h
peeracle/*.cc
peeracle/*.h
samples/**/*.cc
samples/**/*.h
third_party/webrtc/*.cc
third_party/webrtc/*.h
third_party/webrtc/**/*.cc
third_party/webrtc/**/*.h
third_party/webrtc/**/**/*.cc
third_party/webrtc/**/**/*.h
third_party/webrtc/**/**/**/*.cc
third_party/webrtc/**/**/**/*.h
test/unittest_main.h
test/unittest_main.cc
)
include_directories(.)
include_directories(/usr/local/include/vlc/plugins)
include_directories(third_party/webrtc)
include_directories(third_party/googletest/gtest/include)
include_directories(third_party/libwebsockets/config/linux/x64)
add_executable(libpeeracle ${SOURCE_FILES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment