voc / decklink-debugger

Blackmagicdesign DeckLink input debugger
MIT License
23 stars 10 forks source link

Improve CMake configuration #4

Closed TheAssassin closed 6 years ago

TheAssassin commented 6 years ago

Improves UX when trying to build this application.

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)).

MaZderMind commented 6 years ago

@TheAssassin feel free to open another PR and change the README. I'm not that familar with Cpp/Cmake.

TheAssassin commented 6 years ago

Updated the PR with the new instructions, and also resolved the TODO mentioned above. Can be merged now.