Files
cpp-build-system/cmake/libraries/vlc.cmake
Scott E. Graves 92e3e495ce
Some checks failed
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit
sgraves/cpp-build-system/pipeline/head There was a failure building this commit
initial commit
2025-10-17 07:44:16 -05:00

17 lines
509 B
CMake

if(PROJECT_ENABLE_VLC AND PROJECT_BUILD)
add_definitions(-DPROJECT_ENABLE_VLC)
if (PROJECT_IS_MINGW)
set(libvlc_INCLUDE_DIRS ${PROJECT_3RD_PARTY_DIR}/vlc/sdk/include)
set(libvlc_LIBRARIES
${PROJECT_3RD_PARTY_DIR}/vlc/sdk/lib/libvlc.lib
${PROJECT_3RD_PARTY_DIR}/vlc/sdk/lib/libvlccore.lib
)
else()
pkg_check_modules(libvlc REQUIRED libvlc>=${VLC_VERSION})
endif()
include_directories(BEFORE SYSTEM ${libvlc_INCLUDE_DIRS})
link_libraries(${libvlc_LIBRARIES})
endif()