Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Provide a way to deal with generated files in gtest_add_tests
Generated files don't exist yet, so they can't just be passed to file(READ). Unfortunately, the GENERATED property doesn't help that much here, since it is only visible to lists in the same directory as the relevant source file. Since we call gtest_add_tests at the toplevel CMakeLists.txt, it won't be visible. Added a new global property XBMC_GENERATED_TEST_FILES, which should be appended to every time a new generated source file is added to a test. gtest_add_tests will skip files in this list.
- Loading branch information