lu-zero / mfx_dispatch

Intel media sdk dispatcher
BSD 3-Clause "New" or "Revised" License
157 stars 83 forks source link

CMake: Install headers into include/mfx and check minimum version first #64

Closed Corristo closed 4 years ago

Corristo commented 5 years ago

While working on a project with Thomas Volkert (Net-Zeal) we ran into the weird situation that on my machine the mfx headers were top-level in the include directory after installation while on his machine they were in include/mfx.

It turns out that he used autotools to install mfx_dispatch while I used CMake, and they currently behave differently. This patch fixes that and now also puts the headers into include/mfx when using CMake to build and install mfx_dispatch.

Additionally, I've moved the cmake_minimum_required call to the top of the CMakeLists.txt file, as the minimum required version changes the behavior of subsequent project calls (see also https://cmake.org/cmake/help/v3.15/command/cmake_minimum_required.html).