Added support for @PKGDATADIR@ in CMakeLists.txt

Added the required code for cmake