obs-studio/deps/CMakeLists.txt

39 lines
863 B
CMake
Raw Normal View History

if(NOT MINGW)
2014-05-05 10:07:42 -07:00
add_subdirectory(w32-pthreads)
endif()
2014-04-14 14:27:52 -07:00
add_subdirectory(glad)
add_subdirectory(ipc-util)
if(BUILD_LIBFF)
add_subdirectory(libff)
endif()
add_subdirectory(media-playback)
add_subdirectory(file-updater)
add_subdirectory(obs-scripting)
2014-05-24 06:46:22 -07:00
if(WIN32)
add_subdirectory(blake2)
add_subdirectory(lzma)
endif()
2020-11-02 20:46:55 -08:00
add_subdirectory(libcaption)
2014-05-24 06:46:22 -07:00
find_package(Jansson 2.5 QUIET)
if(NOT JANSSON_FOUND)
message(STATUS "Jansson >=2.5 not found, building bundled version")
2014-07-17 09:02:43 -07:00
2014-05-24 06:46:22 -07:00
add_subdirectory(jansson)
2014-07-17 09:02:43 -07:00
set(OBS_JANSSON_IMPORT "jansson" CACHE INTERNAL "Internal var")
set(OBS_JANSSON_INCLUDE_DIRS "" CACHE INTERNAL "Internal var")
2014-05-24 06:46:22 -07:00
else()
message(STATUS "Using system Jansson library")
2014-07-17 09:02:43 -07:00
set(OBS_JANSSON_IMPORT "${JANSSON_LIBRARIES}" CACHE INTERNAL "Internal var")
set(OBS_JANSSON_INCLUDE_DIRS "${JANSSON_INCLUDE_DIRS}" CACHE INTERNAL "Internal var")
endif()