CMakeLists.txt
from the previous section “Hello-world example using CMake” as a starting point.The language is now C instead of CXX.
The executable is now built from two source files: tetris.c and main.c.
You will need this in your CMakeLists.txt
:
target_include_directories(
tetris.x
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
Have fun!