I've got an issue with the CMakeLists.txt file: I'm trying to build a C++ project made with VisualStudio inside CMake, so I've created all the necessaries files. While the "configure" command works well inside the cmake-gui screen, the "generate" command gives me the error: "CMake Error: CMake can not determine linker language for target: Lab2". My visual studio file only has one .cpp files, no headers, and one pic that I'm using inside the cpp file.
What I've written inside the CmakeLists.txt file is the following:
cmake_minimum_required(VERSION 3.9)
# set the project name
project(Lab2)
# add the executable
add_executable(Lab2 source.cpp)
The name of the folder on the desktop is "Lab2" and inside there are the "source", "build", "data", "include" directories. Inside the "source" there are both source.cpp file and "Lab2.cpp.txt" files.
What is wrong? Thank you so much!