I'm on OSX and have the following CMakeLists.txt file:
cmake_minimum_required (VERSION 3.12)
project (Test)
add_executable (test main.cpp)
install (TARGETS test DESTINATION bin)
target_include_directories (test PRIVATE Source)
I get the error:
CMake Error at CMakeLists.txt:5 (add_executable): main.cpp not found
when running the makefile from the directory above Source
.
I'm new to CMake so I've likely just made a noob mistake but I can't fix the error on my own.