Properly set up targets when using the CMake server
Allows for the run interface not to list libraries as executables