Include header files inside CMakeLists.txt

This commit is contained in:
Axel Isouard 2016-09-26 22:58:25 +02:00
parent 062f50a0a0
commit 735024c66a
8 changed files with 19 additions and 7 deletions

View file

@ -15,6 +15,18 @@ set(PEERCONNECTION_SOURCE_FILES
SetRemoteSessionDescriptionObserver.cpp
)
set(PEERCONNECTION_HEADER_FILES
Console.h
Core.h
CreateSessionObserver.h
DataChannelObserver.h
IPeer.h
Peer.h
PeerConnectionObserver.h
SetLocalSessionDescriptionObserver.h
SetRemoteSessionDescriptionObserver.h
)
include_directories(${CMAKE_SOURCE_DIR}/out/src)
if(WIN)
@ -24,7 +36,7 @@ else(WIN)
set(PEERCONNECTION_SOURCE_FILES ${PEERCONNECTION_SOURCE_FILES} UnixConsole.cpp)
endif(WIN)
add_executable(PeerConnection ${PEERCONNECTION_SOURCE_FILES})
add_executable(PeerConnection ${PEERCONNECTION_SOURCE_FILES} ${PEERCONNECTION_HEADER_FILES})
set(PEERCONNECTION_LIBRARIES ${CMAKE_BINARY_DIR}/${LIBWEBRTC_LIBRARY} Threads::Threads)

View file

@ -3,7 +3,7 @@
//
#include "CreateSessionObserver.h"
#include "UnixConsole.h"
#include "Console.h"
#include "Peer.h"
#include "SetLocalSessionDescriptionObserver.h"

View file

@ -3,7 +3,7 @@
//
#include "DataChannelObserver.h"
#include "UnixConsole.h"
#include "Console.h"
DataChannelObserver::DataChannelObserver(

View file

@ -4,7 +4,7 @@
#include <third_party/jsoncpp/source/include/json/writer.h>
#include "SetLocalSessionDescriptionObserver.h"
#include "UnixConsole.h"
#include "Console.h"
SetLocalSessionDescriptionObserver::SetLocalSessionDescriptionObserver(
webrtc::SessionDescriptionInterface* desc): _desc(desc) {

View file

@ -4,7 +4,7 @@
#include "SetRemoteSessionDescriptionObserver.h"
#include "CreateSessionObserver.h"
#include "UnixConsole.h"
#include "Console.h"
SetRemoteSessionDescriptionObserver::SetRemoteSessionDescriptionObserver(

View file

@ -10,7 +10,7 @@
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include "UnixConsole.h"
#include "Console.h"
static int ttyErase;
static int ttyEof;

View file

@ -5,7 +5,7 @@
#include "DataChannelObserver.h"
#include "Peer.h"
#include "SetRemoteSessionDescriptionObserver.h"
#include "UnixConsole.h"
#include "Console.h"
enum {
STATE_EXCHANGE = 0,