{"comment":{"url":"https://api.github.com/repos/dawagner/parameter-framework/comments/10533033","html_url":"https://github.com/dawagner/parameter-framework/commit/3bf43c839b3de60dce68faaf569f2ec2a04bb8ce#commitcomment-10533033","id":10533033,"user":{"login":"clero","id":7363635,"avatar_url":"https://avatars.githubusercontent.com/u/7363635?v=3","gravatar_id":"","url":"https://api.github.com/users/clero","html_url":"https://github.com/clero","followers_url":"https://api.github.com/users/clero/followers","following_url":"https://api.github.com/users/clero/following{/other_user}","gists_url":"https://api.github.com/users/clero/gists{/gist_id}","starred_url":"https://api.github.com/users/clero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clero/subscriptions","organizations_url":"https://api.github.com/users/clero/orgs","repos_url":"https://api.github.com/users/clero/repos","events_url":"https://api.github.com/users/clero/events{/privacy}","received_events_url":"https://api.github.com/users/clero/received_events","type":"User","site_admin":false},"position":8,"line":39,"path":"test/test-fixed-point-parameter/CMakeLists.txt","commit_id":"3bf43c839b3de60dce68faaf569f2ec2a04bb8ce","created_at":"2015-04-01T20:31:21Z","updated_at":"2015-04-01T20:31:21Z","body":"This declaration is quite boring, can't we define something like that ?\r\n\r\n~~~ cmake\r\nfunction (add_unit_test UnitTestName)\r\n    if (${UnitTestCommand} STREQUAL \"\")\r\n        # Anonymous parameter definition (not tested)\r\n        set(UnitTestCommand ${UnitTestName}) \r\n    endif()\r\n    add_test(${UnitTestName} ${UnitTestCommand})\r\n    set_property(TEST ${UnitTestName} PROPERTY ENVIRONMENT\r\n                 PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:$ENV{PATH}\r\n                 LD_LIBRARY_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}:$ENV{LD_LIBRARY_PATH}\r\n                 PYTHONPATH=${CMAKE_BINARY_DIR}/bindings/python:$ENV{PYTHONPATH})\r\nendfunction()\r\n~~~"}}