From 29141745522e08073d92533ab02f0d002f048330 Mon Sep 17 00:00:00 2001 From: alexmercrind Date: Wed, 7 Jul 2021 22:46:23 +0530 Subject: [PATCH] [cmake] Using target_include_directories for Linux --- dartvlc/internal/internal.hpp | 5 ++++- linux/CMakeLists.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dartvlc/internal/internal.hpp b/dartvlc/internal/internal.hpp index 1d77412b..50c20d6a 100644 --- a/dartvlc/internal/internal.hpp +++ b/dartvlc/internal/internal.hpp @@ -8,8 +8,11 @@ * GNU Lesser General Public License v2.1 */ +#ifdef _WIN32 #include - +#else +#include "vlcpp/vlc.hpp" +#endif class PlayerInternal { protected: diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 100b0e3b..4451d7a4 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -38,6 +38,8 @@ include_directories(${PACKAGE} INTERFACE target_include_directories(${PACKAGE} INTERFACE # DartVLC Headers. ${CMAKE_CURRENT_SOURCE_DIR}/../ffi/native + # libVLC++ Headers. + ${LIBVLCPP_SOURCE} ) target_link_libraries(${PACKAGE} PRIVATE vlc