Commit 02179aac authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Use cmake's externalproject to fetch libvlcpp

parent 9502e062
[submodule "src/Backend/VLC/libvlcpp"]
path = src/Backend/VLC/libvlcpp
url = https://code.videolan.org/videolan/libvlcpp.git
......@@ -123,6 +123,7 @@ IF (UNIX)
ENDIF (UNIX)
include(ts/translations.cmake)
subdirs(contribs)
SUBDIRS(src)
SUBDIRS(nsis)
SUBDIRS(effects)
......
project(vlmc)
include(ExternalProject)
set( PREFIX ${PROJECT_BINARY_DIR}/contribs )
set( CONTRIBS_DIR ${PREFIX}/install PARENT_SCOPE )
# Find libvlcpp
ExternalProject_Add(
libvlcpp
PREFIX ${PREFIX}
UPDATE_COMMAND ""
GIT_REPOSITORY https://code.videolan.org/videolan/libvlcpp.git
CONFIGURE_COMMAND <SOURCE_DIR>/bootstrap && <SOURCE_DIR>/configure --prefix=${PREFIX}/install --disable-examples
BUILD_COMMAND make
INSTALL_COMMAND make install
)
......@@ -27,7 +27,7 @@
#include "Backend/IBackend.h"
#include "Tools/Singleton.hpp"
#include "libvlcpp/vlcpp/vlc.hpp"
#include "vlcpp/vlc.hpp"
namespace Backend
{
......
......@@ -26,7 +26,7 @@
#include <QtGlobal>
#include "Backend/ISource.h"
#include "libvlcpp/vlcpp/vlc.hpp"
#include "vlcpp/vlc.hpp"
namespace Backend
{
......
......@@ -28,7 +28,7 @@
#include "Backend/ISourceRenderer.h"
#include "libvlcpp/vlcpp/vlc.hpp"
#include "vlcpp/vlc.hpp"
namespace Backend
{
......
Subproject commit d4d659900a234422aa542816a6387bc8716f8a94
......@@ -285,7 +285,9 @@ ELSE(NOT WITH_GUI)
endif()
ENDIF( NOT WITH_GUI )
#ADD_DEPENDENCIES( vlmc translations )
add_dependencies(vlmc libvlcpp)
message(STATUS "Contribs prefix: ${CONTRIBS_DIR}")
include_directories( ${CONTRIBS_DIR}/include )
INSTALL(TARGETS vlmc
BUNDLE DESTINATION ${VLMC_BIN_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment