{"action":"opened","issue":{"url":"https://api.github.com/repos/cmake-basis/basis/issues/562","repository_url":"https://api.github.com/repos/cmake-basis/basis","labels_url":"https://api.github.com/repos/cmake-basis/basis/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/cmake-basis/basis/issues/562/comments","events_url":"https://api.github.com/repos/cmake-basis/basis/issues/562/events","html_url":"https://github.com/cmake-basis/basis/issues/562","id":148904659,"number":562,"title":"Enable addition of module using basis_add_subdirectory","user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cmake-basis/basis/labels/5%20-%20Completed","name":"5 - Completed","color":"bfe5bf"},{"url":"https://api.github.com/repos/cmake-basis/basis/labels/CMake","name":"CMake","color":"fbca04"},{"url":"https://api.github.com/repos/cmake-basis/basis/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cmake-basis/basis/milestones/23","html_url":"https://github.com/cmake-basis/basis/milestones/v3.3.0","labels_url":"https://api.github.com/repos/cmake-basis/basis/milestones/23/labels","id":1711675,"number":23,"title":"v3.3.0","description":"","creator":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"open_issues":54,"closed_issues":0,"state":"open","created_at":"2016-04-16T20:18:02Z","updated_at":"2016-04-17T00:20:04Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-17T00:20:04Z","updated_at":"2016-04-17T00:20:04Z","closed_at":null,"body":"<a href=\"https://github.com/schuhschuh\"><img src=\"https://avatars.githubusercontent.com/u/975451?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [schuhschuh](https://github.com/schuhschuh)**\n_Friday Apr 01, 2016 at 13:38 GMT_\n_Originally opened as https://github.com/cmake-basis/legacy/issues/562_\n\n----\n\nInstead of ```basis_add_module```, it should be possible to use ```basis_add_subdirectory``` to add a directory that contains a BASIS project module, i.e., a ```BasisProject.cmake``` file. In this case, ```PROJECT_IS_MODULE``` must be set to ```TRUE``` before the ```add_subdirectory``` and to ```FALSE``` again afterwards. This is useful when specifying a module directory as one of the directories of the project rather than having it as part of the list of modules that can be enabled/disabled (auto-addition of ```MODULE_<Name>``` option).\n"}}