Sorry. I soon realize that my post should be sent to CMake mailling list but not CMake Promote mailing list. And I modified the cmakelists.txt again and posted another quesiton in CMake mailing list. Thank you very much!