move stuff in common, clang-format, update copyright

This commit is contained in:
Guillaume Meunier
2022-11-13 11:00:04 +01:00
parent 294c4f81ba
commit 4baf2b17eb
62 changed files with 2291 additions and 2846 deletions
+15
View File
@@ -23,6 +23,18 @@ if (WIVRN_BUILD_SERVER)
pkg_check_modules(LIBAV IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
pkg_check_modules(X264 IMPORTED_TARGET x264)
if(CUDAToolkit_FOUND)
set(WIVRN_HAVE_CUDA ON)
endif()
if(LIBAV_FOUND)
set(WIVRN_HAVE_FFMPEG ON)
endif()
if(X264_FOUND)
set(WIVRN_HAVE_X264 ON)
endif()
if (NOT CUDAToolkit_FOUND AND NOT LIBAV_FOUND AND NOT X264_FOUND)
message(FATAL_ERROR "No encoder found")
endif()
@@ -38,6 +50,9 @@ if(ANDROID)
android_ndk_import_module_native_app_glue()
endif()
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
FetchContent_MakeAvailable(boostpfr)
add_subdirectory(common)
if (WIVRN_BUILD_CLIENT)