Improves UX when trying to build this application.
Tell CMake to require C++11 and not just enable it if available
Use custom target to manage resource compilation
Properly include Blackmagic SDK stuff, and show an error message in case it can't be found
Introduces -DBLACKMAGIC_SDK_DIR=... option to allow users to specify the directory during the configuration step
TODO: search for library dependencies using CMake facilities, and show error message if one or more of them are missing.
By the way, it's really bad style to build in-source (e.g., cmake .). Better tell people to perform out-of-source builds (mkdir build && cd build && cmake .. -DBLACKMAGIC_SDK_DIR=... && make -j$(nproc)).
Improves UX when trying to build this application.
-DBLACKMAGIC_SDK_DIR=...
option to allow users to specify the directory during the configuration stepTODO: search for library dependencies using CMake facilities, and show error message if one or more of them are missing.
By the way, it's really bad style to build in-source (e.g.,
cmake .
). Better tell people to perform out-of-source builds (mkdir build && cd build && cmake .. -DBLACKMAGIC_SDK_DIR=... && make -j$(nproc)
).