I have a project that clearly defines the myapp.exe
target in the toplevel CMakeLists.txt like this:
add_executable(myapp.exe src/myapp_main.cpp)
Now if I invoke the help target to list all the projects targets I get a huge list of targetst that I recognize as being defined somewhere, however myapp.exe
is not in them:
cmake --build build --target help | grep myapp.exe
The strange thing is that cmake-tools for vscode correctly detects this target and lists it. What is the reason for this?