updated the CMajeLists to fix linking error for externally built applications