Add test_if_not_empty macro in Project.cmake
Search only source files if sources_files and/or header_files variables are not set.