cmake-basis / legacy

Legacy CMake BASIS project for versions 3.2 and older. For newer versions, go to
https://github.com/cmake-basis/BASIS
Other
13 stars 11 forks source link

Enable addition of module using basis_add_subdirectory #562

Closed schuhschuh closed 8 years ago

schuhschuh commented 8 years ago

Instead 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).

schuhschuh commented 8 years ago

Implemented by 15d5c4a8ef37a08a5416092b468fd951e61f97c6.