Use ecm_add_test and benefit from BUILD_TESTING awareness
ClosedPublic

Authored by asturmlechner on Aug 8 2017, 10:29 PM.

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
asturmlechner created this revision.Aug 8 2017, 10:29 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 8 2017, 10:29 PM
kfunk accepted this revision.Aug 8 2017, 10:32 PM
This revision is now accepted and ready to land.Aug 8 2017, 10:32 PM
This revision was automatically updated to reflect the committed changes.
apol added a subscriber: apol.Aug 8 2017, 11:43 PM
apol added inline comments.
src/ioslaves/trash/tests/CMakeLists.txt
15

Note that target_link_libraries can still be used with ecm_add_test.
I'd say it's better for readability to use the commands rather than passing cmake variables around.