Setting up a new BCI2000 C++ module - Error
Posted: 03 Aug 2017, 16:06
I'm trying to setup a new C++ program. I've used the NewBCI2000Module.exe and created a new application (module type 3) named "TEMP" wtithin the default parent directory (src/custom). Next, I ran Configure.sh.cmd and selected "Configure."
This led to an error that the source directory (C:/BCI2000.x64/src/custom) does not contain a CMakeLists.txt file. I tried moving the file in C:/BCI2000.x64/src/custom/TEMP/CMakeLists.txt into C:/BCI2000.x64/src/custom, rerunning "Configure" (which ran without errors), but then when clicking "Generate" in CMake, the error "Cannot find source: C:/BCI2000.x64/src/custom/TEMPTask.cpp". So I updated the CMakeLists.txt file within C:/BCI2000.x64/src/custom to instead have "TEMP/TEMPTask.cpp":
bci2000_add_application_module(
TEMP
TEMP/TEMPTask.cpp
)
I wanted to notify the team about this issue but also to get feedback if this is the proper fix? Any recommendations?
This led to an error that the source directory (C:/BCI2000.x64/src/custom) does not contain a CMakeLists.txt file. I tried moving the file in C:/BCI2000.x64/src/custom/TEMP/CMakeLists.txt into C:/BCI2000.x64/src/custom, rerunning "Configure" (which ran without errors), but then when clicking "Generate" in CMake, the error "Cannot find source: C:/BCI2000.x64/src/custom/TEMPTask.cpp". So I updated the CMakeLists.txt file within C:/BCI2000.x64/src/custom to instead have "TEMP/TEMPTask.cpp":
bci2000_add_application_module(
TEMP
TEMP/TEMPTask.cpp
)
I wanted to notify the team about this issue but also to get feedback if this is the proper fix? Any recommendations?