mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
81ebcddd7b
- Build maiatrac3plus on targets without ffmpeg
18 lines
382 B
CMake
18 lines
382 B
CMake
if(NOT WIN32 AND USE_JANSSON)
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(JANSSON jansson>=2.3)
|
|
|
|
if(JANSSON_FOUND)
|
|
set(JANSSON_SOURCE "(system)")
|
|
set(JANSSON_PKG libjansson)
|
|
|
|
include_directories(${JANSSON_INCLUDE_DIRS})
|
|
link_directories(${JANSSON_LIBRARY_DIRS})
|
|
else()
|
|
set(USE_JANSSON OFF)
|
|
endif()
|
|
endif()
|
|
if(NOT USE_JANSSON)
|
|
unset(JANSSON_SOURCE)
|
|
endif()
|