From 665a11917a3e2b34325476ba8faf9753b3f76b90 Mon Sep 17 00:00:00 2001 From: Alex Hoffman Date: Tue, 14 Apr 2020 18:05:08 +0200 Subject: [PATCH] CMakeLists for a basic C project --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..05799084 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +project(git_tutorial) +cmake_minimum_required(VERSION 3.4 FATAL_ERROR) + +set(CMAKE_BUILD_TYPE Debug) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin) + +include_directories(include) + +file(GLOB SOURCES "src/*.c") + +add_executable(foo ${SOURCES}) +