set (path "/a/b")
cmake_path(GET path FOO output)