cmake // fixed duplicated line in tests

Hello,
Here the fix for cmake targets duplication.
Could you please review and integrate it.