I want to create an new module. Therefore I read the tutorial (https://docs.mitk.org/nightly/NewModulePage.html) and follow the steps.
First I created a folder in Modules. Then I wanted to add the folder in CMakeLists.txt in the Modules directory in the section set(module_dirs) but I can not find this section so I add it. But when I build it in QtCreator there is an error that says the new module is not in a CMakeLists.txt file.
I found a ModuleList.cmake file where I added my module too but it is still the same error.
Then I create a CMakeLists.txt file in the Module/myModule directory like this ( I am sorry for the bad formatting)
MITK_CREATE_MODULE(
INCLUDE_DIRS
PUBLIC ${MITK_BINARY_DIR}
PRIVATE src/DataManagement
DEPENDS PUBLIC MitkCore
SUBPROJECTS MITK-Examples
)
but there is an error which says that the INTERFACE libary can only use with the interface key word.
Has anyone an idea to resolve this?