dawn_create_package_string

Create a package string including the location of the library/include directory and version string. Note that the package has to be exported via dawn_export_package.

dawn_create_package_string(NAME PACKAGE_STRING [NOT_FOUND_STRING])
NAME
Name of the package.
PACKAGE_STRING
Returned package string.
NOT_FOUND_STRING
String to print of the package was not found, defaults to “Not FOUND” (optional).

Example

dawn_export_package(Foo FOUND TRUE LIBRARIES "/usr/lib/libfoo.so" VERSION "1.2.3")
dawn_create_package_string(Foo FooPackageStr)
message(${FooPackageStr})