Skip to content
Snippets Groups Projects
LibVLCPlugin.cmake 818 B
Newer Older
callum_linden's avatar
callum_linden committed
# -*- cmake -*-
include(Linking)
include(Prebuilt)

if (USESYSTEMLIBS)
    set(LIBVLCPLUGIN OFF CACHE BOOL
        "LIBVLCPLUGIN support for the llplugin/llmedia test apps.")
else (USESYSTEMLIBS)
    use_prebuilt_binary(vlc-bin)
callum_linden's avatar
callum_linden committed
    set(LIBVLCPLUGIN ON CACHE BOOL
        "LIBVLCPLUGIN support for the llplugin/llmedia test apps.")
        set(VLC_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/vlc)
callum_linden's avatar
callum_linden committed
endif (USESYSTEMLIBS)

if (WINDOWS)
    set(VLC_PLUGIN_LIBRARIES
        libvlc.lib
        libvlccore.lib
    )
callum_linden's avatar
callum_linden committed
elseif (DARWIN)
    set(VLC_PLUGIN_LIBRARIES
        libvlc.dylib
        libvlccore.dylib
    )
callum_linden's avatar
callum_linden committed
elseif (LINUX)
    # Specify a full path to make sure we get a static link
    set(VLC_PLUGIN_LIBRARIES
        ${LIBS_PREBUILT_DIR}/lib/libvlc.a
        ${LIBS_PREBUILT_DIR}/lib/libvlccore.a
    )
callum_linden's avatar
callum_linden committed
endif (WINDOWS)