These are mostly CMakeLists fixes and one cpp fix, the rest is whitespace noise:
CMakeLists include + find_package fails, either include, or (probably what you meant to do and the solution I went for here) add the FindLibObs macro to the CMAKE_MODULE_PATH and then call it with find_package.
LIBOBS_INCLUDE_DIR needs to be on the include path as well because some libobs source files contain includes such as #include <obs.h> which are not found if only the frontend-api directory is included
The library to link is obs to generate the -lobs meaning ”find libobs”, otherwise we get -llibobs which looks for liblibobs and fails. The directory of the found library must also be added in case it is in a non-standard location.
find_package_handle_standard_args complained about different capitalization of the module name and its arguments, those are now the same.
bool v4l2device_close was returning void instead of bool.
These are mostly CMakeLists fixes and one cpp fix, the rest is whitespace noise:
include
+find_package
fails, eitherinclude
, or (probably what you meant to do and the solution I went for here) add theFindLibObs
macro to theCMAKE_MODULE_PATH
and then call it withfind_package
.LIBOBS_INCLUDE_DIR
needs to be on the include path as well because some libobs source files contain includes such as#include <obs.h>
which are not found if only the frontend-api directory is includedobs
to generate the-lobs
meaning ”findlibobs
”, otherwise we get-llibobs
which looks forliblibobs
and fails. The directory of the found library must also be added in case it is in a non-standard location.find_package_handle_standard_args
complained about different capitalization of the module name and its arguments, those are now the same.bool v4l2device_close
was returning void instead of bool.