Added basic VERSION mode for pkg-config mode of cmake [WIP]
Now we can invoke cmake like this:
cmake --find-package -DNAME=Qt5Core -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=VERSION
This will return the version of Qt5Core module if found (like 5.10.1)
Also added VERSION parameter to pass to find_package.
While testing with many modules like Boost, SDL, X11,... I got several errors.
- First with Boost I get 106600 as version while I would expect 1.66.0 which is printed out when doing a simple find_package(Boost REQUIRED)
- Secondly on many packages I get an errors like:
FindThreads only works if either C or CXX language is enabled
CHECK_FUNCTION_EXISTS needs either C or CXX language enabled
Could we fix this?