DkSDKVersion¶
- DkSDKVersion_GetVersion¶
DkSDKVersion_GetVersion( OUTPUT_VERSION varname [OUTPUT_VERSION_MAJOR major_varname] [OUTPUT_VERSION_MINOR minor_varname] [OUTPUT_VERSION_PATCH patch_varname]
)
Get the DkSDK version.
Use it like:
include(DkSDKVersion) DkSDKVersion_GetVersion(OUTPUT_VERSION DKSDK_VERSION) if(DKSDK_VERSION VERSION_GREATER_EQUAL 1.2.3) message(STATUS "Now we are rolling along!") endif()
Arguments¶
- OUTPUT_VERSION varname
On return, the variable
varname
will contain the Dk version in Major.Minor.Patch format suitable for CMake version operators likeVERSION_GREATER_EQUAL
.- OUTPUT_VERSION_MAJOR major_varname
On return, the variable
major_varname
will contain the Major number in the Dk version.- OUTPUT_VERSION_MINOR minor_varname
On return, the variable
minor_varname
will contain the Minor number in the Dk version.- OUTPUT_VERSION_PATCH patch_varname
On return, the variable
patch_varname
will contain the Patch number in the Dk version.